A few more recipes

This commit is contained in:
modmuss50 2019-07-30 20:02:40 +01:00
parent dd7ca7dc99
commit 9c9c5f7ac9
17 changed files with 328 additions and 88 deletions

View file

@ -87,8 +87,8 @@ public class RecipeTemplate {
} }
boolean compressor = true; boolean compressor = false;
boolean grinder = true; boolean grinder = false;
boolean sawmill = false; boolean sawmill = false;
if(compressor){ if(compressor){

View file

@ -1,61 +0,0 @@
/*
* This file is part of TechReborn, licensed under the MIT License (MIT).
*
* Copyright (c) 2018 TechReborn
*
* Permission is hereby granted, free of charge, to any person obtaining a copy
* of this software and associated documentation files (the "Software"), to deal
* in the Software without restriction, including without limitation the rights
* to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
* copies of the Software, and to permit persons to whom the Software is
* furnished to do so, subject to the following conditions:
*
* The above copyright notice and this permission notice shall be included in all
* copies or substantial portions of the Software.
*
* THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
* IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
* FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
* AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
* LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
* OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
* SOFTWARE.
*/
package techreborn.init.recipes;
import net.minecraft.item.ItemStack;
/**
* @author drcrazy
*
*/
public class ChemicalReactorRecipes extends RecipeMethods {
public static void init(){
//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);
register(getMaterial("carbon", Type.CELL), getMaterial("nitrogen", Type.CELL), getMaterial("nitrocarbon", 2, Type.CELL), 800);
register(getMaterial("nitrocarbon", Type.CELL), getMaterial("water", Type.CELL), getMaterial("glyceryl", 2, Type.CELL), 600);
register(getMaterial("glyceryl", Type.CELL), getMaterial("diesel", 4, Type.CELL), getMaterial("nitroDiesel", 5, Type.CELL), 250);
register(getMaterial("glyceryl", Type.CELL), getMaterial("carbon", 4, Type.CELL), getMaterial("nitrocoalFuel", 5, Type.CELL), 250);
register(getMaterial("sulfur", Type.CELL), getMaterial("water", 2, Type.CELL), getMaterial("sulfuricAcid", 3, Type.CELL), 1200);
register(getMaterial("sulfur", Type.CELL), getMaterial("sodium", Type.CELL), getMaterial("sodiumSulfide", 2, Type.CELL), 800);
register(getMaterial("sodiumSulfide", Type.CELL), getMaterial("compressedair", Type.CELL), getMaterial("sodiumPersulfate", 2, Type.CELL), 800);
register(getMaterial("compressedair", Type.CELL), getMaterial("hydrogen", 2, Type.CELL), getMaterial("water", Type.CELL), 400);
register(getMaterial("compressedair", 2, Type.CELL), getMaterial("nitrogen", Type.CELL), getMaterial("nitrogenDioxide", Type.CELL), 400);
register(getMaterial("oil", Type.CELL), getMaterial("nitrogen", Type.CELL), getMaterial("nitrofuel", 2, Type.CELL), 800);
}
public static void register(ItemStack in1, ItemStack in2, ItemStack out, int tickTime, int euPerTick){
// RecipeHandler.addRecipe(Reference.CHEMICAL_REACTOR_RECIPE, new ChemicalReactorRecipe(in1, in2, out, tickTime, euPerTick));
}
public static void register (ItemStack in1, ItemStack in2, ItemStack out, int tickTime){
register(in1, in2, out, tickTime, 30);
}
}

View file

@ -49,7 +49,7 @@ import techreborn.utils.FluidUtils;
public class ItemDynamicCell extends Item implements ItemFluidInfo { public class ItemDynamicCell extends Item implements ItemFluidInfo {
public ItemDynamicCell() { public ItemDynamicCell() {
super(new Item.Settings().maxCount(1).group(TechReborn.ITEMGROUP)); super(new Item.Settings().group(TechReborn.ITEMGROUP));
} }
@Override @Override

View file

@ -0,0 +1,24 @@
{
"type": "techreborn:chemical_reactor",
"power": 30,
"time": 800,
"ingredients": [
{
"fluid": "techreborn:carbon",
"holder": "techreborn:cell"
},
{
"fluid": "techreborn:calcium",
"holder": "techreborn:cell"
}
],
"results": [
{
"item": "techreborn:cell",
"count": 2,
"tag": {
"fluid": "techreborn:calciumcarbonate"
}
}
]
}

View file

@ -0,0 +1,24 @@
{
"type": "techreborn:chemical_reactor",
"power": 30,
"time": 600,
"ingredients": [
{
"fluid": "techreborn:nitrocarbon",
"holder": "techreborn:cell"
},
{
"fluid": "minecraft:water",
"holder": "techreborn:cell"
}
],
"results": [
{
"item": "techreborn:cell",
"count": 2,
"tag": {
"fluid": "techreborn:glyceryl"
}
}
]
}

View file

@ -0,0 +1,24 @@
{
"type": "techreborn:chemical_reactor",
"power": 30,
"time": 2000,
"ingredients": [
{
"fluid": "techreborn:carbon",
"holder": "techreborn:cell"
},
{
"fluid": "techreborn:hydrogen",
"holder": "techreborn:cell"
}
],
"results": [
{
"item": "techreborn:cell",
"count": 5,
"tag": {
"fluid": "techreborn:methane"
}
}
]
}

View file

@ -0,0 +1,24 @@
{
"type": "techreborn:chemical_reactor",
"power": 30,
"time": 800,
"ingredients": [
{
"fluid": "techreborn:carbon",
"holder": "techreborn:cell"
},
{
"fluid": "techreborn:nitrogen",
"holder": "techreborn:cell"
}
],
"results": [
{
"item": "techreborn:cell",
"count": 2,
"tag": {
"fluid": "techreborn:nitrocarbon"
}
}
]
}

View file

@ -0,0 +1,24 @@
{
"type": "techreborn:chemical_reactor",
"power": 30,
"time": 250,
"ingredients": [
{
"fluid": "techreborn:glyceryl",
"holder": "techreborn:cell"
},
{
"fluid": "techreborn:carbon",
"holder": "techreborn:cell"
}
],
"results": [
{
"item": "techreborn:cell",
"count": 5,
"tag": {
"fluid": "techreborn:nitrocoalfuel"
}
}
]
}

View file

@ -0,0 +1,24 @@
{
"type": "techreborn:chemical_reactor",
"power": 30,
"time": 250,
"ingredients": [
{
"fluid": "techreborn:glyceryl",
"holder": "techreborn:cell"
},
{
"fluid": "techreborn:diesel",
"holder": "techreborn:cell"
}
],
"results": [
{
"item": "techreborn:cell",
"count": 5,
"tag": {
"fluid": "techreborn:nitrodiesel"
}
}
]
}

View file

@ -0,0 +1,24 @@
{
"type": "techreborn:chemical_reactor",
"power": 30,
"time": 800,
"ingredients": [
{
"fluid": "techreborn:oil",
"holder": "techreborn:cell"
},
{
"fluid": "techreborn:nitrogen",
"holder": "techreborn:cell"
}
],
"results": [
{
"item": "techreborn:cell",
"count": 2,
"tag": {
"fluid": "techreborn:nitrofuel"
}
}
]
}

View file

@ -0,0 +1,23 @@
{
"type": "techreborn:chemical_reactor",
"power": 30,
"time": 400,
"ingredients": [
{
"fluid": "techreborn:compressedair",
"holder": "techreborn:cell"
},
{
"fluid": "techreborn:nitrogen",
"holder": "techreborn:cell"
}
],
"results": [
{
"item": "techreborn:cell",
"tag": {
"fluid": "techreborn:nitrogendioxide"
}
}
]
}

View file

@ -0,0 +1,24 @@
{
"type": "techreborn:chemical_reactor",
"power": 30,
"time": 800,
"ingredients": [
{
"fluid": "techreborn:sodiumsulfide",
"holder": "techreborn:cell"
},
{
"fluid": "techreborn:compressedair",
"holder": "techreborn:cell"
}
],
"results": [
{
"item": "techreborn:cell",
"count": 2,
"tag": {
"fluid": "techreborn:sodiumpersulfate"
}
}
]
}

View file

@ -0,0 +1,24 @@
{
"type": "techreborn:chemical_reactor",
"power": 30,
"time": 800,
"ingredients": [
{
"fluid": "techreborn:sulfur",
"holder": "techreborn:cell"
},
{
"fluid": "techreborn:sodium",
"holder": "techreborn:cell"
}
],
"results": [
{
"item": "techreborn:cell",
"count": 2,
"tag": {
"fluid": "techreborn:sodiumsulfide"
}
}
]
}

View file

@ -0,0 +1,24 @@
{
"type": "techreborn:chemical_reactor",
"power": 30,
"time": 1200,
"ingredients": [
{
"fluid": "techreborn:sulfur",
"holder": "techreborn:cell"
},
{
"fluid": "minecraft:water",
"holder": "techreborn:cell"
}
],
"results": [
{
"item": "techreborn:cell",
"count": 3,
"tag": {
"fluid": "techreborn:sulfuricacid"
}
}
]
}

View file

@ -0,0 +1,23 @@
{
"type": "techreborn:chemical_reactor",
"power": 30,
"time": 400,
"ingredients": [
{
"fluid": "techreborn:compressedair",
"holder": "techreborn:cell"
},
{
"fluid": "techreborn:hydrogen",
"holder": "techreborn:cell"
}
],
"results": [
{
"item": "techreborn:cell",
"tag": {
"fluid": "minecraft:water"
}
}
]
}

View file

@ -1,24 +0,0 @@
{
"type": "techreborn:chemical_reactor",
"power": 30,
"time": 800,
"ingredients": [
{
"fluid": "techreborn:carbon",
"holder": "techreborn:cell"
},
{
"fluid": "techreborn:calcium",
"holder": "techreborn:cell"
}
],
"results": [
{
"item": "techreborn:cell",
"count": 2,
"tag": {
"fluid": "techreborn:calciumcarbonate"
}
}
]
}

View file

@ -0,0 +1,39 @@
{
"type": "techreborn:distillation_tower",
"power": 20,
"time": 400,
"ingredients": [
{
"item": "techreborn:cell",
"count": 17,
"tag": "null"
},
{
"fluid": "techreborn:oil",
"holder": "techreborn:cell",
"count": 16
}
],
"results": [
{
"item": "techreborn:cell",
"count": 16,
"tag": {
"fluid": "techreborn:diesel"
}
},
{
"item": "techreborn:cell",
"count": 16,
"tag": {
"fluid": "techreborn:sulfuricacid"
}
},
{
"item": "techreborn:cell",
"tag": {
"fluid": "techreborn:glyceryl"
}
}
]
}