mirror of
https://github.com/MightyPirates/OpenComputers.git
synced 2025-09-17 11:15:12 -04:00
more recipes
This commit is contained in:
parent
073ba601f5
commit
36f771d6f5
@ -33,10 +33,12 @@ object Items {
|
|||||||
|
|
||||||
// ----------------------------------------------------------------------- //
|
// ----------------------------------------------------------------------- //
|
||||||
// Crafting
|
// Crafting
|
||||||
var card: item.Card = null
|
var card1,card2,card3: item.Card = null
|
||||||
var circuitBoardBody: item.PlatineBody = null
|
var circuitBoardBody: item.PlatineBody = null
|
||||||
var circuitBoard: item.Platine = null
|
var circuitBoard: item.Platine = null
|
||||||
var ironCutter: item.IronCutter = null
|
var ironCutter: item.IronCutter = null
|
||||||
|
var chip1,chip2,chip3 :item.Chip = null
|
||||||
|
|
||||||
|
|
||||||
def init() {
|
def init() {
|
||||||
multi = new item.Delegator(Settings.get.itemId)
|
multi = new item.Delegator(Settings.get.itemId)
|
||||||
@ -60,9 +62,16 @@ object Items {
|
|||||||
wlan = new item.WirelessNetworkCard(multi)
|
wlan = new item.WirelessNetworkCard(multi)
|
||||||
crafting = new item.Crafting(multi)
|
crafting = new item.Crafting(multi)
|
||||||
|
|
||||||
card = new item.Card(multi)
|
card1 = new item.Card(multi,0)
|
||||||
|
card2 = new item.Card(multi,1)
|
||||||
|
card3 = new item.Card(multi,2)
|
||||||
circuitBoardBody = new item.PlatineBody(multi)
|
circuitBoardBody = new item.PlatineBody(multi)
|
||||||
circuitBoard = new item.Platine(multi)
|
circuitBoard = new item.Platine(multi)
|
||||||
ironCutter = new item.IronCutter(multi)
|
ironCutter = new item.IronCutter(multi)
|
||||||
|
|
||||||
|
|
||||||
|
chip1 = new item.Chip(multi,0)
|
||||||
|
chip2 = new item.Chip(multi,1)
|
||||||
|
chip3 = new item.Chip(multi,2)
|
||||||
}
|
}
|
||||||
}
|
}
|
@ -75,15 +75,40 @@ object Recipes {
|
|||||||
" ",
|
" ",
|
||||||
"xxx", 'x': Character, dirt)
|
"xxx", 'x': Character, dirt)
|
||||||
|
|
||||||
|
GameRegistry.addRecipe(Items.chip1.createItemStack(),
|
||||||
|
"xxx",
|
||||||
|
"xyx",
|
||||||
|
"xxx", 'x': Character, new ItemStack(Block.fenceIron), 'y': Character, new ItemStack(Item.redstone))
|
||||||
|
|
||||||
|
GameRegistry.addRecipe(Items.chip2.createItemStack(),
|
||||||
|
"xxx",
|
||||||
|
"xyx",
|
||||||
|
"xxx", 'x': Character, Items.chip1.createItemStack(), 'y': Character, new ItemStack(Item.ingotGold))
|
||||||
|
|
||||||
|
GameRegistry.addRecipe(Items.chip3.createItemStack(),
|
||||||
|
"xxx",
|
||||||
|
"xyx",
|
||||||
|
"xxx", 'x': Character, Items.chip2.createItemStack(), 'y': Character, new ItemStack(Item.diamond))
|
||||||
|
|
||||||
GameRegistry.addRecipe(Items.analyzer.createItemStack(),
|
GameRegistry.addRecipe(Items.analyzer.createItemStack(),
|
||||||
"x ",
|
"x ",
|
||||||
" ",
|
" ",
|
||||||
"xxx", 'x': Character, dirt)
|
"xxx", 'x': Character, dirt)
|
||||||
|
|
||||||
GameRegistry.addRecipe(Items.card.createItemStack(),
|
GameRegistry.addRecipe(Items.card1.createItemStack(),
|
||||||
"x ",
|
"xyy",
|
||||||
" ",
|
"xzz",
|
||||||
"xxx", 'x': Character, dirt)
|
"xyy", 'x': Character, ironStack, 'y': Character, Items.circuitBoard.createItemStack(), 'z': Character, Items.chip1.createItemStack())
|
||||||
|
|
||||||
|
GameRegistry.addRecipe(Items.card2.createItemStack(),
|
||||||
|
"xyy",
|
||||||
|
"xzz",
|
||||||
|
"xyy", 'x': Character, ironStack, 'y': Character, Items.circuitBoard.createItemStack(), 'z': Character, Items.chip2.createItemStack())
|
||||||
|
|
||||||
|
GameRegistry.addRecipe(Items.card3.createItemStack(),
|
||||||
|
"xyy",
|
||||||
|
"xzz",
|
||||||
|
"xyy", 'x': Character, ironStack, 'y': Character, Items.circuitBoard.createItemStack(), 'z': Character, Items.chip3.createItemStack())
|
||||||
|
|
||||||
GameRegistry.addRecipe(Items.disk.createItemStack(),
|
GameRegistry.addRecipe(Items.disk.createItemStack(),
|
||||||
"x ",
|
"x ",
|
||||||
@ -92,18 +117,48 @@ object Recipes {
|
|||||||
|
|
||||||
GameRegistry.addRecipe(Items.gpu1.createItemStack(),
|
GameRegistry.addRecipe(Items.gpu1.createItemStack(),
|
||||||
"x ",
|
"x ",
|
||||||
" ",
|
"y ",
|
||||||
"xxx", 'x': Character, dirt)
|
"x ", 'x': Character, Items.chip1.createItemStack(), 'y': Character, Items.card1.createItemStack())
|
||||||
|
|
||||||
|
GameRegistry.addRecipe(Items.gpu1.createItemStack(),
|
||||||
|
" x ",
|
||||||
|
" y ",
|
||||||
|
" x ", 'x': Character, Items.chip1.createItemStack(), 'y': Character, Items.card1.createItemStack())
|
||||||
|
|
||||||
|
GameRegistry.addRecipe(Items.gpu1.createItemStack(),
|
||||||
|
" x",
|
||||||
|
" y",
|
||||||
|
" x", 'x': Character, Items.chip1.createItemStack(), 'y': Character, Items.card1.createItemStack())
|
||||||
|
|
||||||
GameRegistry.addRecipe(Items.gpu2.createItemStack(),
|
GameRegistry.addRecipe(Items.gpu2.createItemStack(),
|
||||||
"x ",
|
"x ",
|
||||||
" ",
|
"y ",
|
||||||
"xxx", 'x': Character, dirt)
|
"x ", 'x': Character, Items.chip2.createItemStack(), 'y': Character, Items.card2.createItemStack())
|
||||||
|
|
||||||
|
GameRegistry.addRecipe(Items.gpu2.createItemStack(),
|
||||||
|
" x ",
|
||||||
|
" y ",
|
||||||
|
" x ", 'x': Character, Items.chip2.createItemStack(), 'y': Character, Items.card2.createItemStack())
|
||||||
|
|
||||||
|
GameRegistry.addRecipe(Items.gpu2.createItemStack(),
|
||||||
|
" x",
|
||||||
|
" y",
|
||||||
|
" x", 'x': Character, Items.chip2.createItemStack(), 'y': Character, Items.card2.createItemStack())
|
||||||
|
|
||||||
GameRegistry.addRecipe(Items.gpu3.createItemStack(),
|
GameRegistry.addRecipe(Items.gpu3.createItemStack(),
|
||||||
"x ",
|
"x ",
|
||||||
" ",
|
"y ",
|
||||||
"xxx", 'x': Character, dirt)
|
"x ", 'x': Character, Items.chip3.createItemStack(), 'y': Character, Items.card3.createItemStack())
|
||||||
|
|
||||||
|
GameRegistry.addRecipe(Items.gpu3.createItemStack(),
|
||||||
|
" x ",
|
||||||
|
" y ",
|
||||||
|
" x ", 'x': Character, Items.chip3.createItemStack(), 'y': Character, Items.card3.createItemStack())
|
||||||
|
|
||||||
|
GameRegistry.addRecipe(Items.gpu3.createItemStack(),
|
||||||
|
" x",
|
||||||
|
" y",
|
||||||
|
" x", 'x': Character, Items.chip3.createItemStack(), 'y': Character, Items.card3.createItemStack())
|
||||||
|
|
||||||
GameRegistry.addRecipe(Items.hdd1.createItemStack(),
|
GameRegistry.addRecipe(Items.hdd1.createItemStack(),
|
||||||
"x ",
|
"x ",
|
||||||
@ -120,31 +175,40 @@ object Recipes {
|
|||||||
" ",
|
" ",
|
||||||
"xxx", 'x': Character, dirt)
|
"xxx", 'x': Character, dirt)
|
||||||
|
|
||||||
GameRegistry.addShapelessRecipe(Items.lan.createItemStack(), Items.card.createItemStack(), Blocks.cable.createItemStack())
|
GameRegistry.addShapelessRecipe(Items.lan.createItemStack(), Items.card1.createItemStack(), Blocks.cable.createItemStack())
|
||||||
|
|
||||||
GameRegistry.addRecipe(Items.ram1.createItemStack(),
|
GameRegistry.addRecipe(Items.ram1.createItemStack(),
|
||||||
"x ",
|
"xxx",
|
||||||
|
"yyy",
|
||||||
|
" ", 'x': Character, Items.chip1.createItemStack(), 'y': Character, Items.circuitBoard.createItemStack())
|
||||||
|
GameRegistry.addRecipe(Items.ram1.createItemStack(),
|
||||||
" ",
|
" ",
|
||||||
"xxx", 'x': Character, dirt)
|
"xxx",
|
||||||
|
"yyy", 'x': Character, Items.chip1.createItemStack(), 'y': Character, Items.circuitBoard.createItemStack())
|
||||||
|
|
||||||
GameRegistry.addRecipe(Items.ram2.createItemStack(),
|
GameRegistry.addRecipe(Items.ram2.createItemStack(),
|
||||||
"x ",
|
|
||||||
" ",
|
" ",
|
||||||
"xxx", 'x': Character, dirt)
|
"xxx",
|
||||||
|
"yyy", 'x': Character, Items.chip2.createItemStack(), 'y': Character, Items.circuitBoard.createItemStack())
|
||||||
|
|
||||||
|
GameRegistry.addRecipe(Items.ram2.createItemStack(),
|
||||||
|
"xxx",
|
||||||
|
"yyy",
|
||||||
|
" ", 'x': Character, Items.chip2.createItemStack(), 'y': Character, Items.circuitBoard.createItemStack())
|
||||||
|
|
||||||
GameRegistry.addRecipe(Items.ram3.createItemStack(),
|
GameRegistry.addRecipe(Items.ram3.createItemStack(),
|
||||||
"x ",
|
"xxx",
|
||||||
" ",
|
"yyy",
|
||||||
"xxx", 'x': Character, dirt)
|
" ", 'x': Character, Items.chip3.createItemStack(), 'y': Character, Items.circuitBoard.createItemStack())
|
||||||
|
|
||||||
GameRegistry.addShapelessRecipe(Items.rs.createItemStack(), Items.card.createItemStack(), new ItemStack(Item.redstone, 1))
|
GameRegistry.addShapelessRecipe(Items.rs.createItemStack(), Items.card1.createItemStack(), new ItemStack(Item.redstone, 1))
|
||||||
|
|
||||||
GameRegistry.addRecipe(Items.wlan.createItemStack(),
|
GameRegistry.addRecipe(Items.wlan.createItemStack(),
|
||||||
"x ",
|
"x ",
|
||||||
" ",
|
" ",
|
||||||
"xxx", 'x': Character, dirt)
|
"xxx", 'x': Character, dirt)
|
||||||
|
|
||||||
GameRegistry.addShapelessRecipe(Items.ironCutter.createItemStack(16), new ItemStack(Item.shears,1,OreDictionary.WILDCARD_VALUE), new ItemStack(Item.ingotIron))
|
GameRegistry.addShapelessRecipe(Items.ironCutter.createItemStack(16), new ItemStack(Item.shears, 1, OreDictionary.WILDCARD_VALUE), new ItemStack(Item.ingotIron))
|
||||||
GameRegistry.addShapelessRecipe(Items.circuitBoardBody.createItemStack(), Items.ironCutter.createItemStack(), new ItemStack(Item.clay))
|
GameRegistry.addShapelessRecipe(Items.circuitBoardBody.createItemStack(), Items.ironCutter.createItemStack(), new ItemStack(Item.clay))
|
||||||
GameRegistry.addShapelessRecipe(Items.circuitBoard.createItemStack(), new ItemStack(Item.potion, 1, 8196), Item.goldNugget, Items.circuitBoardBody.createItemStack())
|
GameRegistry.addShapelessRecipe(Items.circuitBoard.createItemStack(), new ItemStack(Item.potion, 1, 8196), Item.goldNugget, Items.circuitBoardBody.createItemStack())
|
||||||
GameRegistry.addShapelessRecipe(Items.circuitBoard.createItemStack(), new ItemStack(Item.potion, 1, 8228), Item.goldNugget, Items.circuitBoardBody.createItemStack())
|
GameRegistry.addShapelessRecipe(Items.circuitBoard.createItemStack(), new ItemStack(Item.potion, 1, 8228), Item.goldNugget, Items.circuitBoardBody.createItemStack())
|
||||||
@ -152,7 +216,7 @@ object Recipes {
|
|||||||
GameRegistry.addShapelessRecipe(Items.circuitBoard.createItemStack(), new ItemStack(Item.potion, 1, 16388), Item.goldNugget, Items.circuitBoardBody.createItemStack())
|
GameRegistry.addShapelessRecipe(Items.circuitBoard.createItemStack(), new ItemStack(Item.potion, 1, 16388), Item.goldNugget, Items.circuitBoardBody.createItemStack())
|
||||||
GameRegistry.addShapelessRecipe(Items.circuitBoard.createItemStack(), new ItemStack(Item.potion, 1, 16420), Item.goldNugget, Items.circuitBoardBody.createItemStack())
|
GameRegistry.addShapelessRecipe(Items.circuitBoard.createItemStack(), new ItemStack(Item.potion, 1, 16420), Item.goldNugget, Items.circuitBoardBody.createItemStack())
|
||||||
GameRegistry.addShapelessRecipe(Items.circuitBoard.createItemStack(), new ItemStack(Item.potion, 1, 16452), Item.goldNugget, Items.circuitBoardBody.createItemStack())
|
GameRegistry.addShapelessRecipe(Items.circuitBoard.createItemStack(), new ItemStack(Item.potion, 1, 16452), Item.goldNugget, Items.circuitBoardBody.createItemStack())
|
||||||
GameRegistry.addShapelessRecipe(new ItemStack(Item.potion),Item.bucketWater,Item.glassBottle)
|
GameRegistry.addShapelessRecipe(new ItemStack(Item.potion), Item.bucketWater, Item.glassBottle)
|
||||||
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
@ -1,6 +1,23 @@
|
|||||||
package li.cil.oc.common.item
|
package li.cil.oc.common.item
|
||||||
|
|
||||||
|
import net.minecraft.item.ItemStack
|
||||||
|
|
||||||
class Card(val parent: Delegator) extends Delegate {
|
|
||||||
|
class Card(val parent: Delegator,val tier:Int) extends Delegate {
|
||||||
val unlocalizedName = "Card"
|
val unlocalizedName = "Card"
|
||||||
|
|
||||||
|
override def displayName(stack: ItemStack) = {
|
||||||
|
if (tier == 0) {
|
||||||
|
Option("Redstone Card")
|
||||||
|
}
|
||||||
|
else if (tier == 1) {
|
||||||
|
Option("Golden Card")
|
||||||
|
}
|
||||||
|
else if (tier == 2) {
|
||||||
|
Option("Diamond Card")
|
||||||
|
}
|
||||||
|
else{
|
||||||
|
Option(unlocalizedName)
|
||||||
|
}
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
24
li/cil/oc/common/item/Chip.scala
Normal file
24
li/cil/oc/common/item/Chip.scala
Normal file
@ -0,0 +1,24 @@
|
|||||||
|
package li.cil.oc.common.item
|
||||||
|
|
||||||
|
import net.minecraft.item.ItemStack
|
||||||
|
import scala.Some
|
||||||
|
|
||||||
|
|
||||||
|
class Chip(val parent: Delegator, val tier: Int) extends Delegate {
|
||||||
|
val unlocalizedName = "Chip"
|
||||||
|
|
||||||
|
override def displayName(stack: ItemStack) = {
|
||||||
|
if (tier == 0) {
|
||||||
|
Option("Redstone Chip")
|
||||||
|
}
|
||||||
|
else if (tier == 1) {
|
||||||
|
Option("Golden Chip")
|
||||||
|
}
|
||||||
|
else if (tier == 2) {
|
||||||
|
Option("Diamond Chip")
|
||||||
|
}
|
||||||
|
else{
|
||||||
|
Option(unlocalizedName)
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
Loading…
x
Reference in New Issue
Block a user