Some chemical reactor recipes

This commit is contained in:
drcrazy 2019-07-29 11:09:37 +03:00
parent 3b63383012
commit 213c1b6faa
9 changed files with 132 additions and 17 deletions

View file

@ -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);

View file

@ -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));

View file

@ -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<RebornRecipeType<?>, 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 <R extends RebornRecipe> void registerMachineRecipe(RecipeHelper recipeHelper, RebornRecipeType<R> recipeType){

View file

@ -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"
}
]
}

View file

@ -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
}
]
}

View file

@ -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"
}
]
}

View file

@ -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"
}
]
}

View file

@ -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"
}
]
}

View file

@ -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
}
]
}