From 213c1b6faabc04edc364999fdd3785529bd6eedf Mon Sep 17 00:00:00 2001 From: drcrazy Date: Mon, 29 Jul 2019 11:09:37 +0300 Subject: [PATCH] Some chemical reactor recipes --- .../init/recipes/ChemicalReactorRecipes.java | 11 ++-------- .../recipes/IndustrialCentrifugeRecipes.java | 2 +- src/main/java/techreborn/rei/ReiPlugin.java | 22 +++++++++++++------ .../enchanted_golden_apple.json | 19 ++++++++++++++++ .../recipes/chemical_reactor/ender_eye.json | 19 ++++++++++++++++ .../glistering_melon_slice.json | 19 ++++++++++++++++ .../chemical_reactor/golden_apple.json | 19 ++++++++++++++++ .../chemical_reactor/golden_carrot.json | 19 ++++++++++++++++ .../recipes/chemical_reactor/magma_cream.json | 19 ++++++++++++++++ 9 files changed, 132 insertions(+), 17 deletions(-) create mode 100644 src/main/resources/data/techreborn/recipes/chemical_reactor/enchanted_golden_apple.json create mode 100644 src/main/resources/data/techreborn/recipes/chemical_reactor/ender_eye.json create mode 100644 src/main/resources/data/techreborn/recipes/chemical_reactor/glistering_melon_slice.json create mode 100644 src/main/resources/data/techreborn/recipes/chemical_reactor/golden_apple.json create mode 100644 src/main/resources/data/techreborn/recipes/chemical_reactor/golden_carrot.json create mode 100644 src/main/resources/data/techreborn/recipes/chemical_reactor/magma_cream.json diff --git a/src/main/java/techreborn/init/recipes/ChemicalReactorRecipes.java b/src/main/java/techreborn/init/recipes/ChemicalReactorRecipes.java index 0cdaec675..57ee8dcb9 100644 --- a/src/main/java/techreborn/init/recipes/ChemicalReactorRecipes.java +++ b/src/main/java/techreborn/init/recipes/ChemicalReactorRecipes.java @@ -24,9 +24,7 @@ package techreborn.init.recipes; -import net.minecraft.block.Blocks; import net.minecraft.item.ItemStack; -import net.minecraft.item.Items; /** * @author drcrazy @@ -34,13 +32,8 @@ import net.minecraft.item.Items; */ public class ChemicalReactorRecipes extends RecipeMethods { public static void init(){ - register(getStack(Items.GOLD_NUGGET, 8), getStack(Items.MELON_SLICE), getStack(Items.GLISTERING_MELON_SLICE), 40); - register(getStack(Items.GOLD_NUGGET, 8), getStack(Items.CARROT), getStack(Items.GOLDEN_CARROT), 40); - register(getStack(Items.GOLD_INGOT, 8), getStack(Items.APPLE), getStack(Items.GOLDEN_APPLE), 40); - register(getStack(Blocks.GOLD_BLOCK, 8), getStack(Items.APPLE, 1), getStack(Items.GOLDEN_APPLE), 100); - register(getStack(Items.BLAZE_POWDER), getStack(Items.SLIME_BALL), getStack(Items.MAGMA_CREAM), 40); - register(getStack(Items.BLAZE_POWDER), getStack(Items.ENDER_PEARL), getStack(Items.ENDER_EYE), 40); - + + //Cells recipes. One cell should be cooked in 20 seconds register(getMaterial("carbon", Type.CELL), getMaterial("calcium", Type.CELL), getMaterial("calciumCarbonate", 2, Type.CELL), 800); register(getMaterial("carbon", Type.CELL), getMaterial("hydrogen", 4, Type.CELL), getMaterial("methane", 5, Type.CELL), 2000); diff --git a/src/main/java/techreborn/init/recipes/IndustrialCentrifugeRecipes.java b/src/main/java/techreborn/init/recipes/IndustrialCentrifugeRecipes.java index f4536a096..8258892ea 100644 --- a/src/main/java/techreborn/init/recipes/IndustrialCentrifugeRecipes.java +++ b/src/main/java/techreborn/init/recipes/IndustrialCentrifugeRecipes.java @@ -36,7 +36,7 @@ import java.security.InvalidParameterException; */ public class IndustrialCentrifugeRecipes extends RecipeMethods { public static void init() { - register(getStack(Items.MAGMA_CREAM), 500, getStack(Items.BLAZE_POWDER), getStack(Items.SLIME_BALL)); + register(getStack(Blocks.DIRT, 16), 2500, getStack(Blocks.SAND, 8), getStack(Items.CLAY_BALL), getStack(Blocks.GRAVEL, 2)); register(getStack(Blocks.GRASS, 16), 2500, getStack(Blocks.SAND, 8), getStack(Items.CLAY_BALL), getStack(Blocks.GRAVEL, 2), getStack(Items.WHEAT_SEEDS, 4)); register(getStack(Blocks.MYCELIUM, 8), 1640, getStack(Blocks.SAND, 4), getStack(Items.CLAY_BALL), getStack(Blocks.BROWN_MUSHROOM, 2), getStack(Blocks.RED_MUSHROOM, 2)); diff --git a/src/main/java/techreborn/rei/ReiPlugin.java b/src/main/java/techreborn/rei/ReiPlugin.java index d239bbe55..4698731e4 100644 --- a/src/main/java/techreborn/rei/ReiPlugin.java +++ b/src/main/java/techreborn/rei/ReiPlugin.java @@ -9,8 +9,9 @@ import net.minecraft.util.Identifier; import reborncore.common.crafting.RebornRecipe; import reborncore.common.crafting.RebornRecipeType; import reborncore.common.crafting.RecipeManager; +import techreborn.TechReborn; import techreborn.init.ModRecipes; -import techreborn.init.TRContent; +import techreborn.init.TRContent.Machine; import java.util.HashMap; import java.util.Map; @@ -18,15 +19,16 @@ import java.util.function.Predicate; public class ReiPlugin implements REIPluginEntry { - public static final Identifier PLUGIN = new Identifier("techreborn", "techreborn_plugin"); + public static final Identifier PLUGIN = new Identifier(TechReborn.MOD_ID, "techreborn_plugin"); public static final Map, ItemConvertible> iconMap = new HashMap<>(); public ReiPlugin() { - iconMap.put(ModRecipes.ALLOY_SMELTER, TRContent.Machine.ALLOY_SMELTER); - iconMap.put(ModRecipes.GRINDER, TRContent.Machine.GRINDER); - iconMap.put(ModRecipes.BLAST_FURNACE, TRContent.Machine.INDUSTRIAL_BLAST_FURNACE); - iconMap.put(ModRecipes.CENTRIFUGE, TRContent.Machine.INDUSTRIAL_CENTRIFUGE); + iconMap.put(ModRecipes.ALLOY_SMELTER, Machine.ALLOY_SMELTER); + iconMap.put(ModRecipes.GRINDER, Machine.GRINDER); + iconMap.put(ModRecipes.BLAST_FURNACE, Machine.INDUSTRIAL_BLAST_FURNACE); + iconMap.put(ModRecipes.CENTRIFUGE, Machine.INDUSTRIAL_CENTRIFUGE); + iconMap.put(ModRecipes.CHEMICAL_REACTOR, Machine.CHEMICAL_REACTOR); //TODO add the others here } @@ -47,7 +49,13 @@ public class ReiPlugin implements REIPluginEntry { @Override public void registerOthers(RecipeHelper recipeHelper) { - recipeHelper.registerWorkingStations(ModRecipes.ALLOY_SMELTER.getName(), new ItemStack[]{new ItemStack(TRContent.Machine.ALLOY_SMELTER.asItem())}); + recipeHelper.registerWorkingStations(ModRecipes.ALLOY_SMELTER.getName(), + new ItemStack[] { new ItemStack(Machine.ALLOY_SMELTER.asItem()), + new ItemStack(Machine.IRON_ALLOY_FURNACE.asItem())}); + recipeHelper.registerWorkingStations(ModRecipes.GRINDER.getName(), new ItemStack(Machine.GRINDER.asItem())); + recipeHelper.registerWorkingStations(ModRecipes.BLAST_FURNACE.getName(), new ItemStack(Machine.INDUSTRIAL_BLAST_FURNACE.asItem())); + recipeHelper.registerWorkingStations(ModRecipes.CENTRIFUGE.getName(), new ItemStack(Machine.INDUSTRIAL_CENTRIFUGE.asItem())); + recipeHelper.registerWorkingStations(ModRecipes.CHEMICAL_REACTOR.getName(), new ItemStack(Machine.CHEMICAL_REACTOR.asItem())); } private void registerMachineRecipe(RecipeHelper recipeHelper, RebornRecipeType recipeType){ diff --git a/src/main/resources/data/techreborn/recipes/chemical_reactor/enchanted_golden_apple.json b/src/main/resources/data/techreborn/recipes/chemical_reactor/enchanted_golden_apple.json new file mode 100644 index 000000000..0d0ceab08 --- /dev/null +++ b/src/main/resources/data/techreborn/recipes/chemical_reactor/enchanted_golden_apple.json @@ -0,0 +1,19 @@ +{ + "type": "techreborn:chemical_reactor", + "power": 30, + "time": 100, + "ingredients": [ + { + "item": "minecraft:gold_block", + "count": 8 + }, + { + "item": "minecraft:apple" + } + ], + "results": [ + { + "item": "minecraft:enchanted_golden_apple" + } + ] +} diff --git a/src/main/resources/data/techreborn/recipes/chemical_reactor/ender_eye.json b/src/main/resources/data/techreborn/recipes/chemical_reactor/ender_eye.json new file mode 100644 index 000000000..551df8996 --- /dev/null +++ b/src/main/resources/data/techreborn/recipes/chemical_reactor/ender_eye.json @@ -0,0 +1,19 @@ +{ + "type": "techreborn:chemical_reactor", + "power": 30, + "time": 40, + "ingredients": [ + { + "item": "minecraft:blaze_powder" + }, + { + "item": "minecraft:ender_pearl" + } + ], + "results": [ + { + "item": "minecraft:ender_eye", + "count": 2 + } + ] +} diff --git a/src/main/resources/data/techreborn/recipes/chemical_reactor/glistering_melon_slice.json b/src/main/resources/data/techreborn/recipes/chemical_reactor/glistering_melon_slice.json new file mode 100644 index 000000000..56ab518f3 --- /dev/null +++ b/src/main/resources/data/techreborn/recipes/chemical_reactor/glistering_melon_slice.json @@ -0,0 +1,19 @@ +{ + "type": "techreborn:chemical_reactor", + "power": 30, + "time": 40, + "ingredients": [ + { + "item": "minecraft:gold_nugget", + "count": 8 + }, + { + "item": "minecraft:melon_slice" + } + ], + "results": [ + { + "item": "minecraft:glistering_melon_slice" + } + ] +} diff --git a/src/main/resources/data/techreborn/recipes/chemical_reactor/golden_apple.json b/src/main/resources/data/techreborn/recipes/chemical_reactor/golden_apple.json new file mode 100644 index 000000000..3ad524bd1 --- /dev/null +++ b/src/main/resources/data/techreborn/recipes/chemical_reactor/golden_apple.json @@ -0,0 +1,19 @@ +{ + "type": "techreborn:chemical_reactor", + "power": 30, + "time": 40, + "ingredients": [ + { + "item": "minecraft:gold_nugget", + "count": 8 + }, + { + "item": "minecraft:apple" + } + ], + "results": [ + { + "item": "minecraft:golden_apple" + } + ] +} diff --git a/src/main/resources/data/techreborn/recipes/chemical_reactor/golden_carrot.json b/src/main/resources/data/techreborn/recipes/chemical_reactor/golden_carrot.json new file mode 100644 index 000000000..d182bc744 --- /dev/null +++ b/src/main/resources/data/techreborn/recipes/chemical_reactor/golden_carrot.json @@ -0,0 +1,19 @@ +{ + "type": "techreborn:chemical_reactor", + "power": 30, + "time": 40, + "ingredients": [ + { + "item": "minecraft:gold_nugget", + "count": 8 + }, + { + "item": "minecraft:carrot" + } + ], + "results": [ + { + "item": "minecraft:golden_carrot" + } + ] +} diff --git a/src/main/resources/data/techreborn/recipes/chemical_reactor/magma_cream.json b/src/main/resources/data/techreborn/recipes/chemical_reactor/magma_cream.json new file mode 100644 index 000000000..384e85e3f --- /dev/null +++ b/src/main/resources/data/techreborn/recipes/chemical_reactor/magma_cream.json @@ -0,0 +1,19 @@ +{ + "type": "techreborn:chemical_reactor", + "power": 30, + "time": 40, + "ingredients": [ + { + "item": "minecraft:blaze_powder" + }, + { + "item": "minecraft:slime_ball" + } + ], + "results": [ + { + "item": "minecraft:magma_cream", + "count": 2 + } + ] +}