Posted June 20, 201411 yr Hi guys, I want to make an Item that stays in the crafting grid WITHOUT TAKING DAMAGE. I have already saw that, so I know it is possible. How do I do that?
June 20, 201411 yr I would suggest to look into the furnace code. Or try to safe the items that are in the crafting grid with NBTData and read the NBTData, but don't forget to send the NBTDate to the server. Developer of Primeval Forest.
June 20, 201411 yr Author qBektor: Furnace? This has nothing to do with a furnace. NBT? This has nothing to do with NBT. @pta2002: Use getContainerItem and hasContainerItem in your Item class. How do I do that?
June 20, 201411 yr qBektor: Furnace? This has nothing to do with a furnace. NBT? This has nothing to do with NBT. @pta2002: Use getContainerItem and hasContainerItem in your Item class. Well, I thought it has something to do with it, because of in the furnace the items stays in the crafting grid, too. And it could be that I understand here something wrong... (well, my english is not perfect...) Developer of Primeval Forest.
June 20, 201411 yr Author Do what? Override methods? Learn java. Noooo, how do I use those methods? Where do I put them? And what do I make to the item stay in the crafting grid?
June 20, 201411 yr Override these methods: Item#hasContainerItem Item#doesContainerItemLeaveCraftingGrid Item#getContainerItem If I helped please press the Thank You button.
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.