From 420132cc3f6505920f7c50933b750dcbb5fadffa Mon Sep 17 00:00:00 2001 From: trinsdar <30245301+Trinsdar@users.noreply.github.com> Date: Sun, 22 Dec 2024 18:37:29 -0500 Subject: [PATCH] added hidden railcraft easter egg --- .../trinsdar/gt4r/loader/machines/MaceratorLoader.java | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/common/src/main/java/trinsdar/gt4r/loader/machines/MaceratorLoader.java b/common/src/main/java/trinsdar/gt4r/loader/machines/MaceratorLoader.java index 23996aff..b76aafd1 100644 --- a/common/src/main/java/trinsdar/gt4r/loader/machines/MaceratorLoader.java +++ b/common/src/main/java/trinsdar/gt4r/loader/machines/MaceratorLoader.java @@ -20,6 +20,7 @@ import net.minecraft.world.item.Items; import net.minecraft.tags.ItemTags; import net.minecraft.resources.ResourceLocation; +import org.gtreimagined.gtcore.data.GTCoreBlocks; import trinsdar.gt4r.GT4RRef; import java.util.ArrayList; @@ -140,7 +141,12 @@ public static void initAuto() { }); AntimatterAPI.all(StoneType.class, s -> { if (s.getMaterial() == NULL || !s.getMaterial().has(DUST) || s.isSandLike()) return; - UNIVERSAL_MACERATOR.RB().ii(RecipeIngredient.of(s.getState().getBlock().asItem(), 1)).io(DUST.get(s.getMaterial(), 1)).add(s.getId() + "_stone_to_" + s.getMaterial().getId() + "_dust",400, 2); + if (s == GTCoreBlocks.KIMBERLITE){ + UNIVERSAL_MACERATOR.RB().ii(RecipeIngredient.of(s.getState().getBlock().asItem(), 1)).io(DUST.get(s.getMaterial(), 1), GEM.get(Diamond, 1)).outputChances(1.0, 0.0001).hide().add(s.getId() + "_stone_to_" + s.getMaterial().getId() + "_dust_hidden",400, 2); + UNIVERSAL_MACERATOR.RB().ii(RecipeIngredient.of(s.getState().getBlock().asItem(), 1)).io(DUST.get(s.getMaterial(), 1)).fake().add(s.getId() + "_stone_to_" + s.getMaterial().getId() + "_dust",400, 2); + } else { + UNIVERSAL_MACERATOR.RB().ii(RecipeIngredient.of(s.getState().getBlock().asItem(), 1)).io(DUST.get(s.getMaterial(), 1)).add(s.getId() + "_stone_to_" + s.getMaterial().getId() + "_dust",400, 2); + } if (s instanceof CobbleStoneType){ UNIVERSAL_MACERATOR.RB().ii(RecipeIngredient.of(((CobbleStoneType)s).getBlock("cobble").asItem(), 1)).io(DUST.get(s.getMaterial(), 1)).add("cobbled_" + s.getId() + "_to_" + s.getMaterial().getId() + "_dust",400, 2); }