/* SkyFactory 4 Animal Crops Recipe Script This script handles the recipes for Animal Crops. */ import crafttweaker.item.IItemStack; import crafttweaker.item.IIngredient; import mods.zenstages.Utils; /* Shaped Recipes */ static shapedRecipes as IIngredient[][][][IItemStack] = { .withTag({entity: "minecraft:chicken"}): [ [ [], [], [] ] ], .withTag({entity: "minecraft:pig"}): [ [ [], [], [] ] ], .withTag({entity: "minecraft:sheep"}): [ [ [], [], [] ] ], .withTag({entity: "minecraft:cow"}): [ [ [], [], [] ] ], .withTag({entity: "minecraft:mooshroom"}): [ [ [], [.withTag({entity: "minecraft:cow"})], [] ] ], .withTag({entity: "minecraft:horse"}): [ [ [], [], [] ] ], .withTag({entity: "minecraft:villager"}): [ [ [], [], [] ] ], .withTag({entity: "minecraft:enderman"}): [ [ [, , ], [null, , null], [, , ] ] ], .withTag({entity: "minecraft:donkey"}): [ [ [], [.withTag({entity: "minecraft:horse"})], [] ] ], .withTag({entity: "minecraft:llama"}): [ [ [], [.withTag({entity: "minecraft:pig"})], [] ] ], .withTag({entity: "minecraft:ocelot"}): [ [ [], [], [] ] ], .withTag({entity: "minecraft:parrot"}): [ [ [], [], [] ] ], .withTag({entity: "minecraft:polar_bear"}): [ [ [], [.withTag({entity: "minecraft:cow"})], [] ] ], .withTag({entity: "minecraft:rabbit"}): [ [ [], [], [] ] ], .withTag({entity: "minecraft:wolf"}): [ [ [], [.withTag({entity: "minecraft:sheep"})], [] ] ], .withTag({entity: "waddles:adelie_penguin"}): [ [ [], [.withTag({entity: "minecraft:polar_bear"})], [] ] ], .withTag({entity: "minecraft:blaze"}): [ [ [], [.withTag({entity: "minecraft:chicken"})], [] ] ], .withTag({entity: "twilightforest:mini_ghast"}): [ [ [], [], [] ] ], .withTag({entity: "minecraft:magma_cube"}): [ [ [], [], [] ] ], .withTag({entity: "minecraft:slime"}): [ [ [], [], [] ] ], .withTag({entity: "minecraft:creeper"}): [ [ [], [], [] ] ], .withTag({entity: "minecraft:zombie"}): [ [ [], [], [] ] ], .withTag({entity: "minecraft:skeleton"}): [ [ [], [], [] ] ], .withTag({entity: "minecraft:spider"}): [ [ [], [], [] ] ], .withTag({entity: "minecraft:witch"}): [ [ [], [], [] ] ], .withTag({entity: "minecraft:wither_skeleton"}): [ [ [], [.withTag({entity: "minecraft:skeleton"})], [] ] ], .withTag({entity: "minecraft:skeleton_horse"}): [ [ [], [.withTag({entity: "minecraft:skeleton"})], [] ] ], .withTag({entity: "thermalfoundation:blizz"}): [ [ [], [], [] ] ], .withTag({entity: "thermalfoundation:blitz"}): [ [ [], [], [] ] ], .withTag({entity: "thermalfoundation:basalz"}): [ [ [], [], [] ] ], .withTag({entity: "matteroverdrive:ranged_rogue_android"}): [ [ [], [], [] ] ], .withTag({entity: "matteroverdrive:rogue_android"}): [ [ [], [], [] ] ], .withTag({entity: "minecraft:evocation_illager"}): [ [ [], [], [] ] ], .withTag({entity: "minecraft:shulker"}): [ [ [], [], [] ] ], .withTag({entity: "industrialforegoing:pink_slime"}): [ [ [], [], [] ] ], .withTag({entity: "tconstruct:blueslime"}): [ [ [], [], [] ] ], //Water Seeds .withTag({entity: "minecraft:guardian"}): [ [ [], [], [] ] ], .withTag({entity: "minecraft:squid"}): [ [ [], [], [.withTag({Potion: "minecraft:water"}).transformReplace()] ] ], }; static namedShapedRecipes as IIngredient[][][][string][IItemStack] = { .withTag({entity: "twilightforest:death_tome"}): { Utils.genRecipeName(stages.fakeTwilight): [ [ [], [], [] ] ] }, .withTag({entity: "twilightforest:minotaur"}): { Utils.genRecipeName(stages.fakeTwilight): [ [ [], [], [] ] ] }, .withTag({entity: "twilightforest:helmet_crab"}): { Utils.genRecipeName(stages.fakeTwilight): [ [ [], [], [] ] ], }, .withTag({entity: "twilightforest:yeti"}): { Utils.genRecipeName(stages.fakeTwilight): [ [ [], [], [] ] ] } }; /* Mirrored Recipes */ static mirroredRecipes as IIngredient[][][][IItemStack] = { }; static namedMirroredRecipes as IIngredient[][][][string][IItemStack] = { }; /* Shapeless Recipes */ static shapelessRecipes as IIngredient[][][IItemStack] = { }; static namedShapelessRecipes as IIngredient[][][string][IItemStack] = { : { Utils.genRecipeName(stages.fakeTwilight): [ [, ] ] }, : { Utils.genRecipeName(stages.fakeTwilight): [ [, ] ] } }; /* Recipe Removals */ static removeRecipes as IItemStack[] = []; function init() { // Un-named recipes recipeUtil.process(shapedRecipes, false); recipeUtil.process(mirroredRecipes, true); recipeUtil.process(shapelessRecipes); // Named recipes recipeUtil.processNamed(namedShapedRecipes, false); recipeUtil.processNamed(namedMirroredRecipes, true); recipeUtil.processNamed(namedShapelessRecipes); recipeUtil.removeRecipes(removeRecipes); }