Search the Community
Showing results for tags 'item'.
-
Hello, I'm having a lot of trouble finding information on adding and IItemHandler capability to an Item, for an TileEntity it has methods like hasCapability however I can't find a method like that in an Item, all items have is "initCapabilities", and I have honestly no clue what to return or do to add an inventory to an item. So if anyone could please point me to any information that could tell me how capabilities work on items and how to implement an inventory. Thank you.
- 10 replies
-
- capability
- iitemhandler
-
(and 1 more)
Tagged with:
-
I have an item which needs to change its model based on NBT. How do I go about utilizing and implementing an item with NBT that can take advantage of the ModelLoader.setCustomMeshDefinition() I was reading this article https://gist.github.com/williewillus/57d7093efa80163e96e0 It was suggested that, "You can do things like return different models depending on NBT" when using ModelLoader.setCustomMeshDefinition() Now I've read a lot of articles from Choonster and other informed members of the community. I have yet to succeed with anything I have tried due to the lack of concrete complete implementations. I am already aware of how to write NBT data to an item. Anyones help with this will be greatly appreciated but if you do intend to leave an answer please be patient and leave a well informed detailed response or please link a source code example as reference. Thanks!