1
Hello Guys,
I just wanted to know , how can we make an item Craftable with items from our mod ( that we created)
i tried putting it in the Item.java but nothing.
Thx for those who will help
I just wanted to know , how can we make an item Craftable with items from our mod ( that we created)
i tried putting it in the Item.java but nothing.
Thx for those who will help
Create an account or sign in to comment.
5
Well, if your crafting recipe is in the same folder, I would assume you could just do this for the crafting recipe. For example if the item is called randomItem:
You shouldn't need to declare it as Item.randomItem
ItemStack dirtStack = new ItemStack(Block.dirt);
ItemStack randomItemStack = new ItemStack(randomItem);
GameRegistry.addRecipe(new ItemStack(Block.cobblestone), "xy", "yx",
'x', dirtStack, 'y', randomItemStack);
You shouldn't need to declare it as Item.randomItem
Ok thx i will try when i get home !
i also tried this :
new ItemStack(Item.myItem)
But not working too
new ItemStack(Item.myItem)
But not working too
I Mean for exemple
"I "
" X ",
" X",
I is Iron and X my item. how can i say that X is my Item , cause it doesnt show up in the
Item. list.
Thx for helping.
"I "
" X ",
" X",
I is Iron and X my item. how can i say that X is my Item , cause it doesnt show up in the
Item. list.
Thx for helping.
Could you maybe post a pastebin with your code? I don't think you need to put it into the Item.java it should be more like this:
{Java Setup Stuff}private static final Item YourItem = new Item(Item Setup Info)
{other Java Stuff}
GameRegistry.addShapelessRecipe(new ItemStack(Item.diamond, 64), new ItemStack(YourItem));
At least I think that will work. OR if your item is in a different package make sure to import it, just play around a bit.