Fluid Replicator recipes done. Need rei support for fluid
This commit is contained in:
parent
ed5c2cc870
commit
a2bb34ead0
12 changed files with 159 additions and 68 deletions
|
@ -37,8 +37,13 @@ public enum ModFluids {
|
||||||
BERYLIUM,
|
BERYLIUM,
|
||||||
CALCIUM,
|
CALCIUM,
|
||||||
CALCIUM_CARBONATE,
|
CALCIUM_CARBONATE,
|
||||||
|
CARBON,
|
||||||
|
CARBON_FIBER,
|
||||||
CHLORITE,
|
CHLORITE,
|
||||||
|
COMPRESSED_AIR,
|
||||||
DEUTERIUM,
|
DEUTERIUM,
|
||||||
|
DIESEL,
|
||||||
|
ELECTROLYZED_WATER,
|
||||||
GLYCERYL,
|
GLYCERYL,
|
||||||
HELIUM,
|
HELIUM,
|
||||||
HELIUM_3,
|
HELIUM_3,
|
||||||
|
@ -47,27 +52,22 @@ public enum ModFluids {
|
||||||
LITHIUM,
|
LITHIUM,
|
||||||
MERCURY,
|
MERCURY,
|
||||||
METHANE,
|
METHANE,
|
||||||
|
NITRO_CARBON,
|
||||||
|
NITRO_DIESEL,
|
||||||
NITROCOAL_FUEL,
|
NITROCOAL_FUEL,
|
||||||
NITROFUEL,
|
NITROFUEL,
|
||||||
NITROGEN,
|
NITROGEN,
|
||||||
NITROGENDIOXIDE,
|
NITROGENDIOXIDE,
|
||||||
|
OIL,
|
||||||
POTASSIUM,
|
POTASSIUM,
|
||||||
SILICON,
|
SILICON,
|
||||||
SODIUM,
|
SODIUM,
|
||||||
SODIUMPERSULFATE,
|
|
||||||
TRITIUM,
|
|
||||||
WOLFRAMIUM,
|
|
||||||
CARBON,
|
|
||||||
CARBON_FIBER,
|
|
||||||
NITRO_CARBON,
|
|
||||||
SULFUR,
|
|
||||||
SODIUM_SULFIDE,
|
SODIUM_SULFIDE,
|
||||||
DIESEL,
|
SODIUMPERSULFATE,
|
||||||
NITRO_DIESEL,
|
SULFUR,
|
||||||
OIL,
|
|
||||||
SULFURIC_ACID,
|
SULFURIC_ACID,
|
||||||
COMPRESSED_AIR,
|
TRITIUM,
|
||||||
ELECTROLYZED_WATER;
|
WOLFRAMIUM;
|
||||||
|
|
||||||
private RebornFluid stillFluid;
|
private RebornFluid stillFluid;
|
||||||
private RebornFluid flowingFluid;
|
private RebornFluid flowingFluid;
|
||||||
|
|
|
@ -1,56 +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;
|
|
||||||
|
|
||||||
/**
|
|
||||||
* @author drcrazy
|
|
||||||
*
|
|
||||||
*/
|
|
||||||
public class FluidReplicatorRecipes {
|
|
||||||
|
|
||||||
/* TODO 1.13 :D
|
|
||||||
|
|
||||||
public static void init() {
|
|
||||||
|
|
||||||
register(2, ModFluids.CARBON, 100, 20);
|
|
||||||
register(2, ModFluids.CALCIUM, 100, 20);
|
|
||||||
register(2, ModFluids.CARBON_FIBER, 100, 20);
|
|
||||||
register(2, ModFluids.HYDROGEN, 100, 20);
|
|
||||||
register(4, ModFluids.MERCURY, 200, 20);
|
|
||||||
register(4, ModFluids.METHANE, 200, 20);
|
|
||||||
register(8, ModFluids.GLYCERYL, 200, 20);
|
|
||||||
register(10, ModFluids.BERYLLIUM, 200, 20);
|
|
||||||
register(10, ModFluids.CHLORITE, 200, 20);
|
|
||||||
}
|
|
||||||
|
|
||||||
static void register(int input, Fluid output, int ticks, int euPerTick) {
|
|
||||||
if(output == null || input < 1 || ticks < 1 || euPerTick < 1){
|
|
||||||
return;
|
|
||||||
}
|
|
||||||
FluidReplicatorRecipeList.addRecipe(new FluidReplicatorRecipe(input, output, ticks, euPerTick));
|
|
||||||
}
|
|
||||||
|
|
||||||
*/
|
|
||||||
}
|
|
|
@ -35,6 +35,7 @@ import reborncore.common.crafting.RebornRecipeType;
|
||||||
import reborncore.common.crafting.RecipeManager;
|
import reborncore.common.crafting.RecipeManager;
|
||||||
import techreborn.TechReborn;
|
import techreborn.TechReborn;
|
||||||
import techreborn.api.recipe.recipes.BlastFurnaceRecipe;
|
import techreborn.api.recipe.recipes.BlastFurnaceRecipe;
|
||||||
|
import techreborn.api.recipe.recipes.FluidReplicatorRecipe;
|
||||||
import techreborn.api.recipe.recipes.IndustrialGrinderRecipe;
|
import techreborn.api.recipe.recipes.IndustrialGrinderRecipe;
|
||||||
import techreborn.api.recipe.recipes.IndustrialSawmillRecipe;
|
import techreborn.api.recipe.recipes.IndustrialSawmillRecipe;
|
||||||
import techreborn.init.ModRecipes;
|
import techreborn.init.ModRecipes;
|
||||||
|
@ -85,6 +86,7 @@ public class ReiPlugin implements REIPluginEntry {
|
||||||
recipeHelper.registerCategory(new MachineRecipeCategory<RebornRecipe>(ModRecipes.COMPRESSOR, 1));
|
recipeHelper.registerCategory(new MachineRecipeCategory<RebornRecipe>(ModRecipes.COMPRESSOR, 1));
|
||||||
recipeHelper.registerCategory(new MachineRecipeCategory<RebornRecipe>(ModRecipes.DISTILLATION_TOWER, 3));
|
recipeHelper.registerCategory(new MachineRecipeCategory<RebornRecipe>(ModRecipes.DISTILLATION_TOWER, 3));
|
||||||
recipeHelper.registerCategory(new MachineRecipeCategory<RebornRecipe>(ModRecipes.EXTRACTOR, 1));
|
recipeHelper.registerCategory(new MachineRecipeCategory<RebornRecipe>(ModRecipes.EXTRACTOR, 1));
|
||||||
|
recipeHelper.registerCategory(new MachineRecipeCategory<FluidReplicatorRecipe>(ModRecipes.FLUID_REPLICATOR, 1));
|
||||||
recipeHelper.registerCategory(new MachineRecipeCategory<RebornRecipe>(ModRecipes.GRINDER, 1));
|
recipeHelper.registerCategory(new MachineRecipeCategory<RebornRecipe>(ModRecipes.GRINDER, 1));
|
||||||
recipeHelper.registerCategory(new MachineRecipeCategory<RebornRecipe>(ModRecipes.IMPLOSION_COMPRESSOR));
|
recipeHelper.registerCategory(new MachineRecipeCategory<RebornRecipe>(ModRecipes.IMPLOSION_COMPRESSOR));
|
||||||
recipeHelper.registerCategory(new MachineRecipeCategory<RebornRecipe>(ModRecipes.INDUSTRIAL_ELECTROLYZER, 4));
|
recipeHelper.registerCategory(new MachineRecipeCategory<RebornRecipe>(ModRecipes.INDUSTRIAL_ELECTROLYZER, 4));
|
||||||
|
@ -111,6 +113,7 @@ public class ReiPlugin implements REIPluginEntry {
|
||||||
recipeHelper.registerWorkingStations(ModRecipes.COMPRESSOR.getName(), new ItemStack(Machine.COMPRESSOR.asItem()));
|
recipeHelper.registerWorkingStations(ModRecipes.COMPRESSOR.getName(), new ItemStack(Machine.COMPRESSOR.asItem()));
|
||||||
recipeHelper.registerWorkingStations(ModRecipes.DISTILLATION_TOWER.getName(), new ItemStack(Machine.DISTILLATION_TOWER.asItem()));
|
recipeHelper.registerWorkingStations(ModRecipes.DISTILLATION_TOWER.getName(), new ItemStack(Machine.DISTILLATION_TOWER.asItem()));
|
||||||
recipeHelper.registerWorkingStations(ModRecipes.EXTRACTOR.getName(), new ItemStack(Machine.EXTRACTOR.asItem()));
|
recipeHelper.registerWorkingStations(ModRecipes.EXTRACTOR.getName(), new ItemStack(Machine.EXTRACTOR.asItem()));
|
||||||
|
recipeHelper.registerWorkingStations(ModRecipes.FLUID_REPLICATOR.getName(), new ItemStack(Machine.FLUID_REPLICATOR.asItem()));
|
||||||
recipeHelper.registerWorkingStations(ModRecipes.GRINDER.getName(), new ItemStack(Machine.GRINDER.asItem()));
|
recipeHelper.registerWorkingStations(ModRecipes.GRINDER.getName(), new ItemStack(Machine.GRINDER.asItem()));
|
||||||
recipeHelper.registerWorkingStations(ModRecipes.IMPLOSION_COMPRESSOR.getName(), new ItemStack(Machine.IMPLOSION_COMPRESSOR.asItem()));
|
recipeHelper.registerWorkingStations(ModRecipes.IMPLOSION_COMPRESSOR.getName(), new ItemStack(Machine.IMPLOSION_COMPRESSOR.asItem()));
|
||||||
recipeHelper.registerWorkingStations(ModRecipes.INDUSTRIAL_ELECTROLYZER.getName(), new ItemStack(Machine.INDUSTRIAL_ELECTROLYZER.asItem()));
|
recipeHelper.registerWorkingStations(ModRecipes.INDUSTRIAL_ELECTROLYZER.getName(), new ItemStack(Machine.INDUSTRIAL_ELECTROLYZER.asItem()));
|
||||||
|
|
|
@ -0,0 +1,16 @@
|
||||||
|
{
|
||||||
|
"type": "techreborn:fluid_replicator",
|
||||||
|
"power": 20,
|
||||||
|
"time": 200,
|
||||||
|
"tank": {
|
||||||
|
"fluid": "techreborn:beryllium",
|
||||||
|
"amount": 1000
|
||||||
|
},
|
||||||
|
"ingredients": [
|
||||||
|
{
|
||||||
|
"item": "techreborn:uu_matter",
|
||||||
|
"count": 10
|
||||||
|
}
|
||||||
|
],
|
||||||
|
"results": []
|
||||||
|
}
|
|
@ -0,0 +1,16 @@
|
||||||
|
{
|
||||||
|
"type": "techreborn:fluid_replicator",
|
||||||
|
"power": 20,
|
||||||
|
"time": 100,
|
||||||
|
"tank": {
|
||||||
|
"fluid": "techreborn:calcium",
|
||||||
|
"amount": 1000
|
||||||
|
},
|
||||||
|
"ingredients": [
|
||||||
|
{
|
||||||
|
"item": "techreborn:uu_matter",
|
||||||
|
"count": 2
|
||||||
|
}
|
||||||
|
],
|
||||||
|
"results": []
|
||||||
|
}
|
|
@ -0,0 +1,16 @@
|
||||||
|
{
|
||||||
|
"type": "techreborn:fluid_replicator",
|
||||||
|
"power": 20,
|
||||||
|
"time": 100,
|
||||||
|
"tank": {
|
||||||
|
"fluid": "techreborn:carbon",
|
||||||
|
"amount": 1000
|
||||||
|
},
|
||||||
|
"ingredients": [
|
||||||
|
{
|
||||||
|
"item": "techreborn:uu_matter",
|
||||||
|
"count": 2
|
||||||
|
}
|
||||||
|
],
|
||||||
|
"results": []
|
||||||
|
}
|
|
@ -0,0 +1,16 @@
|
||||||
|
{
|
||||||
|
"type": "techreborn:fluid_replicator",
|
||||||
|
"power": 20,
|
||||||
|
"time": 100,
|
||||||
|
"tank": {
|
||||||
|
"fluid": "techreborn:carbonfiber",
|
||||||
|
"amount": 1000
|
||||||
|
},
|
||||||
|
"ingredients": [
|
||||||
|
{
|
||||||
|
"item": "techreborn:uu_matter",
|
||||||
|
"count": 2
|
||||||
|
}
|
||||||
|
],
|
||||||
|
"results": []
|
||||||
|
}
|
|
@ -0,0 +1,16 @@
|
||||||
|
{
|
||||||
|
"type": "techreborn:fluid_replicator",
|
||||||
|
"power": 20,
|
||||||
|
"time": 200,
|
||||||
|
"tank": {
|
||||||
|
"fluid": "techreborn:chlorite",
|
||||||
|
"amount": 1000
|
||||||
|
},
|
||||||
|
"ingredients": [
|
||||||
|
{
|
||||||
|
"item": "techreborn:uu_matter",
|
||||||
|
"count": 10
|
||||||
|
}
|
||||||
|
],
|
||||||
|
"results": []
|
||||||
|
}
|
|
@ -0,0 +1,16 @@
|
||||||
|
{
|
||||||
|
"type": "techreborn:fluid_replicator",
|
||||||
|
"power": 20,
|
||||||
|
"time": 200,
|
||||||
|
"tank": {
|
||||||
|
"fluid": "techreborn:glyceryl",
|
||||||
|
"amount": 1000
|
||||||
|
},
|
||||||
|
"ingredients": [
|
||||||
|
{
|
||||||
|
"item": "techreborn:uu_matter",
|
||||||
|
"count": 8
|
||||||
|
}
|
||||||
|
],
|
||||||
|
"results": []
|
||||||
|
}
|
|
@ -0,0 +1,16 @@
|
||||||
|
{
|
||||||
|
"type": "techreborn:fluid_replicator",
|
||||||
|
"power": 20,
|
||||||
|
"time": 100,
|
||||||
|
"tank": {
|
||||||
|
"fluid": "techreborn:hydrogen",
|
||||||
|
"amount": 1000
|
||||||
|
},
|
||||||
|
"ingredients": [
|
||||||
|
{
|
||||||
|
"item": "techreborn:uu_matter",
|
||||||
|
"count": 2
|
||||||
|
}
|
||||||
|
],
|
||||||
|
"results": []
|
||||||
|
}
|
|
@ -0,0 +1,16 @@
|
||||||
|
{
|
||||||
|
"type": "techreborn:fluid_replicator",
|
||||||
|
"power": 20,
|
||||||
|
"time": 200,
|
||||||
|
"tank": {
|
||||||
|
"fluid": "techreborn:mercury",
|
||||||
|
"amount": 1000
|
||||||
|
},
|
||||||
|
"ingredients": [
|
||||||
|
{
|
||||||
|
"item": "techreborn:uu_matter",
|
||||||
|
"count": 4
|
||||||
|
}
|
||||||
|
],
|
||||||
|
"results": []
|
||||||
|
}
|
|
@ -0,0 +1,16 @@
|
||||||
|
{
|
||||||
|
"type": "techreborn:fluid_replicator",
|
||||||
|
"power": 20,
|
||||||
|
"time": 200,
|
||||||
|
"tank": {
|
||||||
|
"fluid": "techreborn:methane",
|
||||||
|
"amount": 1000
|
||||||
|
},
|
||||||
|
"ingredients": [
|
||||||
|
{
|
||||||
|
"item": "techreborn:uu_matter",
|
||||||
|
"count": 4
|
||||||
|
}
|
||||||
|
],
|
||||||
|
"results": []
|
||||||
|
}
|
Loading…
Add table
Reference in a new issue