From 7c7a095cc3062e27d81f69d8d0aec53e59ce847f Mon Sep 17 00:00:00 2001 From: Mrbysco Date: Tue, 12 Mar 2024 16:39:36 +0100 Subject: [PATCH] Add Automatic Feeder recipe back --- .../9fb1092f32d4fcbf9e061ffd718d4ec689c6c95e | 3 ++- .../actuallyadditions/recipes/feeder.json | 26 +++++++++++++++++++ .../data/BlockRecipeGenerator.java | 15 ++++++++++- 3 files changed, 42 insertions(+), 2 deletions(-) create mode 100644 src/generated/resources/data/actuallyadditions/recipes/feeder.json diff --git a/src/generated/resources/.cache/9fb1092f32d4fcbf9e061ffd718d4ec689c6c95e b/src/generated/resources/.cache/9fb1092f32d4fcbf9e061ffd718d4ec689c6c95e index e738b7b55..bd340ddbc 100644 --- a/src/generated/resources/.cache/9fb1092f32d4fcbf9e061ffd718d4ec689c6c95e +++ b/src/generated/resources/.cache/9fb1092f32d4fcbf9e061ffd718d4ec689c6c95e @@ -1,4 +1,4 @@ -// 1.20.4 2024-03-11T17:51:04.4103588 Recipes +// 1.20.4 2024-03-12T16:39:18.4273951 Recipes 4d3128b37a7153882a9324cda49b5069207561c5 data/actuallyadditions/recipes/atomic_reconstructor.json b0367f5012651764931e8b8fd0c5bcca4e8614c0 data/actuallyadditions/recipes/battery_box.json 7e05cd54092b998dfdbd2221235dd52576ec79eb data/actuallyadditions/recipes/black_quartz_block.json @@ -35,6 +35,7 @@ b056eb52c2e1dc6bdb2118c1dd20147822aff982 data/actuallyadditions/recipes/ethetic_ 961311957c0bee25afbc84dded2cb6869e6baaf7 data/actuallyadditions/recipes/ethetic_white_stairs.json 17800d8fb71d48976d98c8fa1bd14370b4bdc960 data/actuallyadditions/recipes/ethetic_white_wall.json 318124e5a7f4d94f95eb3497b56a5dcdf575b257 data/actuallyadditions/recipes/farmer.json +910167dadf4b41e21971dd62207d3cf4160963d0 data/actuallyadditions/recipes/feeder.json e2f9ec08306500d981cad22bc2cf7925712d08de data/actuallyadditions/recipes/fermenting_barrel.json 9c1e45adf3ad5ef64044ac111ef1ac2a57a498d0 data/actuallyadditions/recipes/firework_box.json 2391a543a2e43ff5b87234a71d9bd339f9fa3e9c data/actuallyadditions/recipes/fluid_collector.json diff --git a/src/generated/resources/data/actuallyadditions/recipes/feeder.json b/src/generated/resources/data/actuallyadditions/recipes/feeder.json new file mode 100644 index 000000000..1167ff18b --- /dev/null +++ b/src/generated/resources/data/actuallyadditions/recipes/feeder.json @@ -0,0 +1,26 @@ +{ + "type": "minecraft:crafting_shaped", + "category": "misc", + "key": { + "B": { + "item": "actuallyadditions:basic_coil" + }, + "C": { + "item": "actuallyadditions:wood_casing" + }, + "G": { + "item": "minecraft:golden_carrot" + }, + "P": { + "tag": "minecraft:planks" + } + }, + "pattern": [ + "PGP", + "BCB", + "PGP" + ], + "result": { + "item": "actuallyadditions:feeder" + } +} \ No newline at end of file diff --git a/src/main/java/de/ellpeck/actuallyadditions/data/BlockRecipeGenerator.java b/src/main/java/de/ellpeck/actuallyadditions/data/BlockRecipeGenerator.java index da21d7960..c4b8e3b85 100644 --- a/src/main/java/de/ellpeck/actuallyadditions/data/BlockRecipeGenerator.java +++ b/src/main/java/de/ellpeck/actuallyadditions/data/BlockRecipeGenerator.java @@ -5,7 +5,11 @@ import de.ellpeck.actuallyadditions.mod.blocks.ActuallyBlocks; import de.ellpeck.actuallyadditions.mod.items.ActuallyItems; import de.ellpeck.actuallyadditions.mod.util.NoAdvRecipeOutput; import net.minecraft.data.PackOutput; -import net.minecraft.data.recipes.*; +import net.minecraft.data.recipes.RecipeCategory; +import net.minecraft.data.recipes.RecipeOutput; +import net.minecraft.data.recipes.RecipeProvider; +import net.minecraft.data.recipes.ShapedRecipeBuilder; +import net.minecraft.data.recipes.ShapelessRecipeBuilder; import net.minecraft.tags.ItemTags; import net.minecraft.world.item.Items; import net.minecraft.world.level.ItemLike; @@ -448,6 +452,15 @@ public class BlockRecipeGenerator extends RecipeProvider { .define('R', ActuallyItems.RESTONIA_CRYSTAL) .define('C', ActuallyBlocks.ENDER_CASING.getItem()) .save(recipeOutput); + + // Automatic Feeder + Recipe.shaped(ActuallyBlocks.FEEDER.getItem()) + .pattern("PGP", "BCB", "PGP") + .define('P', ItemTags.PLANKS) + .define('G', Items.GOLDEN_CARROT) + .define('B', ActuallyItems.BASIC_COIL) + .define('C', ActuallyBlocks.WOOD_CASING.getItem()) + .save(recipeOutput); } public static class Recipe {