diff --git a/li/cil/oc/Blocks.scala b/li/cil/oc/Blocks.scala index 05b0da71b..5c1986cea 100644 --- a/li/cil/oc/Blocks.scala +++ b/li/cil/oc/Blocks.scala @@ -18,7 +18,7 @@ object Blocks { var diskDrive: DiskDrive = null var keyboard: Keyboard = null var powerDistributor: PowerDistributor = null - var powerSupply: PowerConverter = null + var powerConverter: PowerConverter = null var robotProxy: RobotProxy = null var robotAfterimage: RobotAfterimage = null var router: Router = null @@ -61,7 +61,7 @@ object Blocks { diskDrive = new DiskDrive(blockSimple) keyboard = new Keyboard(blockSpecial) powerDistributor = new PowerDistributor(blockSimple) - powerSupply = new PowerConverter(blockSimple) + powerConverter = new PowerConverter(blockSimple) robotAfterimage = new RobotAfterimage(blockSpecial) robotProxy = new RobotProxy(blockSpecialWithRedstone) router = new Router(blockSimple) diff --git a/li/cil/oc/Recipes.scala b/li/cil/oc/Recipes.scala index ef8c962dc..d8f04c41a 100644 --- a/li/cil/oc/Recipes.scala +++ b/li/cil/oc/Recipes.scala @@ -12,9 +12,10 @@ object Recipes { val cactusGreen = new ItemStack(Item.dyePowder, 1, 2) val clock = new ItemStack(Item.pocketSundial) val comparator = new ItemStack(Item.comparator) + val craftingTable = new ItemStack(Block.workbench) val diamond = new ItemStack(Item.diamond) - val dirt = new ItemStack(Block.dirt) val dispenser = new ItemStack(Block.dispenser) + val dropper = new ItemStack(Block.dropper) val emerald = new ItemStack(Item.emerald) val enderPearl = new ItemStack(Item.enderPearl) val glass = new ItemStack(Block.glass) @@ -26,7 +27,7 @@ object Recipes { val lapis = new ItemStack(Item.dyePowder, 1, 4) val lever = new ItemStack(Block.lever) val minecartHopper = new ItemStack(Item.minecartHopper) - val netherQuarz = new ItemStack(Item.netherQuartz) + val netherQuartz = new ItemStack(Item.netherQuartz) val obsidian = new ItemStack(Block.obsidian) val paper = new ItemStack(Item.paper) val piston = new ItemStack(Block.pistonBase) @@ -64,39 +65,6 @@ object Recipes { val transistor = Items.transistor.createItemStack() val wlanCard = Items.wlan.createItemStack() - // ----------------------------------------------------------------------- // - - addRecipe(Blocks.adapter.createItemStack(), - "x ", - " ", - "xxx", - 'x', dirt) - - addRecipe(Blocks.capacitor.createItemStack(), - "x ", - " ", - "xxx", - 'x', dirt) - - addRecipe(Blocks.powerDistributor.createItemStack(), - "x ", - " ", - "xxx", - 'x', dirt) - - addRecipe(Blocks.powerSupply.createItemStack(), - "x ", - " ", - "xxx", - 'x', dirt) - - addRecipe(Blocks.router.createItemStack(), - "x ", - " ", - "xxx", - 'x', dirt) - - // ----------------------------------------------------------------------- // GameRegistry.addShapelessRecipe(new ItemStack(Item.potion), Item.bucketWater, Item.glassBottle) @@ -212,16 +180,6 @@ object Recipes { // ----------------------------------------------------------------------- // - addRecipe(Items.analyzer.createItemStack(), - " r ", - "tcg", - "tpg", - 'r', redstoneTorch, - 't', transistor, - 'c', chip1, - 'g', goldNugget, - 'p', printedCircuitBoard) - addRecipe(Blocks.case1.createItemStack(), "ipi", "bcb", @@ -278,9 +236,39 @@ object Recipes { 'p', printedCircuitBoard, 'c', chip3, 'b', blazeRod, - 'q', netherQuarz, + 'q', netherQuartz, 's', Blocks.screen2.createItemStack()) + addRecipe(Blocks.capacitor.createItemStack(), + "iti", + "gpg", + "ibi", + 'i', ironIngot, + 't', transistor, + 'g', goldNugget, + 'p', paper, + 'b', printedCircuitBoard) + + addRecipe(Blocks.powerDistributor.createItemStack(), + "ici", + "wgw", + "ibi", + 'i', ironIngot, + 'c', chip1, + 'w', cable, + 'g', goldIngot, + 'b', printedCircuitBoard) + + addRecipe(Blocks.powerConverter.createItemStack(), + "iwi", + "gcg", + "ibi", + 'i', ironIngot, + 'c', chip1, + 'w', cable, + 'g', goldIngot, + 'b', printedCircuitBoard) + addRecipe(Blocks.diskDrive.createItemStack(), "ici", "ps ", @@ -290,17 +278,45 @@ object Recipes { 'p', piston, 's', stick) + addRecipe(Blocks.router.createItemStack(), + "ini", + "ncn", + "ibi", + 'i', ironIngot, + 'n', lanCard, + 'c', chip1, + 'b', printedCircuitBoard) + + addRecipe(Blocks.adapter.createItemStack(), + "iwi", + "wcw", + "ibi", + 'i', ironIngot, + 'w', cable, + 'c', chip1, + 'b', printedCircuitBoard) + + addRecipe(Blocks.charger.createItemStack(), + "igi", + "pcp", + "ibi", + 'i', ironIngot, + 'g', goldIngot, + 'p', Blocks.capacitor.createItemStack(), + 'c', chip2, + 'b', printedCircuitBoard) + addRecipe(Blocks.robotProxy.createItemStack(), "sgf", "dcr", - "pmp", + "bmb", 's', Blocks.screen1.createItemStack(), 'g', gpu1, 'f', Blocks.diskDrive.createItemStack(), 'd', dispenser, 'c', Blocks.case1.createItemStack(), 'r', ram1, - 'p', piston, + 'b', Blocks.capacitor.createItemStack(), 'm', minecartHopper) addRecipe(Blocks.keyboard.createItemStack(), @@ -319,6 +335,16 @@ object Recipes { // ----------------------------------------------------------------------- // + addRecipe(Items.analyzer.createItemStack(), + " r ", + "tcg", + "tpg", + 'r', redstoneTorch, + 't', transistor, + 'c', chip1, + 'g', goldNugget, + 'p', printedCircuitBoard) + addRecipe(ram1, "ccc", "bbb", @@ -419,6 +445,25 @@ object Recipes { 'p', enderPearl, 'c', chip2, 'b', lanCard) + + addRecipe(Items.generator.createItemStack(), + "i i", + "cpc", + "bib", + 'i', ironIngot, + 'c', chip1, + 'p', piston, + 'b', printedCircuitBoard) + + addRecipe(Items.crafting.createItemStack(), + "idi", + "cwc", + "ibi", + 'i', ironIngot, + 'd', dropper, + 'c', chip1, + 'w', craftingTable, + 'b', printedCircuitBoard) } private def addRecipe(output: ItemStack, args: Any*) = {