Skip to content

Commit

Permalink
added hidden railcraft easter egg
Browse files Browse the repository at this point in the history
  • Loading branch information
Trinsdar committed Dec 22, 2024
1 parent 820e1a8 commit 420132c
Showing 1 changed file with 7 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand Down Expand Up @@ -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);
}
Expand Down

0 comments on commit 420132c

Please sign in to comment.