From 7b16833139441f167d2493eec5834731bbc608ed Mon Sep 17 00:00:00 2001 From: Ellpeck Date: Sat, 17 Sep 2016 12:12:59 +0200 Subject: [PATCH] bio reactor recipe and doc --- .../actuallyadditions/mod/booklet/InitBooklet.java | 1 + .../mod/config/values/ConfigCrafting.java | 1 + .../actuallyadditions/mod/crafting/BlockCrafting.java | 11 +++++++++++ .../assets/actuallyadditions/lang/en_US.lang | 6 +++++- 4 files changed, 18 insertions(+), 1 deletion(-) diff --git a/src/main/java/de/ellpeck/actuallyadditions/mod/booklet/InitBooklet.java b/src/main/java/de/ellpeck/actuallyadditions/mod/booklet/InitBooklet.java index ea6b5f7be..3de37f585 100644 --- a/src/main/java/de/ellpeck/actuallyadditions/mod/booklet/InitBooklet.java +++ b/src/main/java/de/ellpeck/actuallyadditions/mod/booklet/InitBooklet.java @@ -155,6 +155,7 @@ public final class InitBooklet{ new BookletChapter("heatCollector", ActuallyAdditionsAPI.entryGeneratingRF, new ItemStack(InitBlocks.blockHeatCollector), new PageTextOnly(1).addTextReplacement("", TileEntityHeatCollector.ENERGY_PRODUCE).addTextReplacement("", TileEntityHeatCollector.BLOCKS_NEEDED), new PageCrafting(2, BlockCrafting.recipeHeatCollector).setNoText()); new BookletChapter("canola", ActuallyAdditionsAPI.entryGeneratingRF, new ItemStack(InitBlocks.blockFermentingBarrel), new PageTextOnly(1).setStacks(new ItemStack(InitItems.itemMisc, 1, TheMiscItems.CANOLA.ordinal()), new ItemStack(InitItems.itemCanolaSeed)), new PageTextOnly(2), new PageCrafting(3, BlockCrafting.recipeCanolaPress).setNoText(), new PageCrafting(4, BlockCrafting.recipeFermentingBarrel).setNoText(), new PageCrafting(5, BlockCrafting.recipeOilGen).setNoText(), new PageReconstructor(6, LensRecipeHandler.recipeCrystallizedCanolaSeed).setNoText(), new PageEmpowerer(7, EmpowererHandler.recipeEmpoweredCanolaSeed).setNoText()); new BookletChapter("leafGen", ActuallyAdditionsAPI.entryGeneratingRF, new ItemStack(InitBlocks.blockLeafGenerator), new PageTextOnly(1).addTextReplacement("", TileEntityLeafGenerator.ENERGY_PRODUCED).addTextReplacement("", TileEntityLeafGenerator.RANGE), new PageCrafting(2, BlockCrafting.recipeLeafGen)).setImportant(); + new BookletChapter("bioReactor", ActuallyAdditionsAPI.entryGeneratingRF, new ItemStack(InitBlocks.blockBioReactor), new PageTextOnly(1), new PageCrafting(2, BlockCrafting.recipeBioReactor).setNoText()).setSpecial();; //No RF Using Items new BookletChapter("bags", ActuallyAdditionsAPI.entryItemsNonRF, new ItemStack(InitItems.itemBag), new PageTextOnly(1), new PageCrafting(2, ItemCrafting.recipeBag), new PageCrafting(3, ItemCrafting.recipeVoidBag).setNoText()).setImportant(); diff --git a/src/main/java/de/ellpeck/actuallyadditions/mod/config/values/ConfigCrafting.java b/src/main/java/de/ellpeck/actuallyadditions/mod/config/values/ConfigCrafting.java index 7a523a231..0314a6435 100644 --- a/src/main/java/de/ellpeck/actuallyadditions/mod/config/values/ConfigCrafting.java +++ b/src/main/java/de/ellpeck/actuallyadditions/mod/config/values/ConfigCrafting.java @@ -88,6 +88,7 @@ public enum ConfigCrafting{ LEAF_GENERATOR("Leaf Generator", ConfigCategories.BLOCKS_CRAFTING), OIL_GENERATOR("Oil Generator", ConfigCategories.BLOCKS_CRAFTING), PHANTOMFACE("Phantomface", ConfigCategories.BLOCKS_CRAFTING), + BIO_REACTOR("Bio Reactor", ConfigCategories.BLOCKS_CRAFTING), PHANTOM_CONNECTOR("Phantom Connector", ConfigCategories.ITEMS_CRAFTING), PLAYER_INTERFACE("Player Interface", ConfigCategories.BLOCKS_CRAFTING), PLAYER_PROBE("Player Probe", ConfigCategories.ITEMS_CRAFTING), diff --git a/src/main/java/de/ellpeck/actuallyadditions/mod/crafting/BlockCrafting.java b/src/main/java/de/ellpeck/actuallyadditions/mod/crafting/BlockCrafting.java index 15fb578e5..4631aa03f 100644 --- a/src/main/java/de/ellpeck/actuallyadditions/mod/crafting/BlockCrafting.java +++ b/src/main/java/de/ellpeck/actuallyadditions/mod/crafting/BlockCrafting.java @@ -97,6 +97,7 @@ public final class BlockCrafting{ public static IRecipe[] recipesTinyTorch = new IRecipe[2]; public static IRecipe recipeFluidLaser; public static IRecipe recipeDistributorItem; + public static IRecipe recipeBioReactor; public static void init(){ @@ -568,6 +569,16 @@ public final class BlockCrafting{ recipeOilGen = RecipeUtil.lastIRecipe(); } + //Bio Reactor + if(ConfigCrafting.BIO_REACTOR.isEnabled()){ + GameRegistry.addRecipe(new ShapedOreRecipe(new ItemStack(InitBlocks.blockBioReactor), + "CRC", "CBC", "CRC", + 'C', new ItemStack(InitItems.itemCrystalEmpowered, 1, TheCrystals.IRON.ordinal()), + 'R', new ItemStack(InitBlocks.blockMisc, 1, TheMiscBlocks.IRON_CASING.ordinal()), + 'B', new ItemStack(Blocks.SAPLING, 1, Util.WILDCARD))); + recipeBioReactor = RecipeUtil.lastIRecipe(); + } + //Coal Generator if(ConfigCrafting.COAL_GENERATOR.isEnabled()){ GameRegistry.addRecipe(new ShapedOreRecipe(new ItemStack(InitBlocks.blockCoalGenerator), diff --git a/src/main/resources/assets/actuallyadditions/lang/en_US.lang b/src/main/resources/assets/actuallyadditions/lang/en_US.lang index b11ba9f24..173402bc9 100644 --- a/src/main/resources/assets/actuallyadditions/lang/en_US.lang +++ b/src/main/resources/assets/actuallyadditions/lang/en_US.lang @@ -228,6 +228,7 @@ tile.actuallyadditions.blockShockSuppressor.name=Shock Absorber tile.actuallyadditions.blockTinyTorch.name=Tiny Torch tile.actuallyadditions.blockEmpowerer.name=Empowerer tile.actuallyadditions.blockDistributorItem.name=Item Distributor +tile.actuallyadditions.blockBioReactor.name=Bio Reactor #ESD tile.actuallyadditions.blockInputter.name=ESD @@ -1023,4 +1024,7 @@ booklet.actuallyadditions.chapter.fluidLaser.name=Fluid Laser Relays booklet.actuallyadditions.chapter.fluidLaser.text.1=The Fluid Laser Relays work much in the same way that normal Laser Relays do, so if you want to know anything about them, visit the Blocks that use RF section of the manual. The thing that makes the Fluid Laser Relay different from the Energy Laser Relay, however, is that it transfers fluids from internal tanks of blocks into other blocks. booklet.actuallyadditions.chapter.distributorItem.name=Item Distributor -booklet.actuallyadditions.chapter.distributorItem.text.1=The Item Distributor is a simple way to split up items and make them go in different directions. The distributor will pull items into it from the top by itself, and then split them up and put them out into inventories connected to all of the other sides of it. It tries to do split the items equally, however this works best when inputting one item at a time, which its pulling feature does automatically. \ No newline at end of file +booklet.actuallyadditions.chapter.distributorItem.text.1=The Item Distributor is a simple way to split up items and make them go in different directions. The distributor will pull items into it from the top by itself, and then split them up and put them out into inventories connected to all of the other sides of it. It tries to do split the items equally, however this works best when inputting one item at a time, which its pulling feature does automatically. + +booklet.actuallyadditions.chapter.bioReactor.name=Bio Reactor +booklet.actuallyadditions.chapter.bioReactor.text.1=The Bio Reactor uses all types of seeds, foodstuffs and plants to generate RF! To do this, just place the items in its GUI. If you try this out, you will notice that it doesn't generate that much power by default. However, the more different kinds of plants, seeds and foodstuffs it has, the more power it will generate! \ No newline at end of file