Have an example: https://github.com/diesieben07/Modjam-4/blob/master/src/main/java/mod/badores/event/FMLEventHandler.java#L62
ok... now where do I put this code...?
I made a sort of "dummy" item and put it in the creative tab, and then I just had it change it's NBT data in the onUpdate() method and that seems to work fine
so I can add NBT data to an ItemStack, but not an Item. so how do I get an Item with my custom NBT data into a creative tab. because when I run: example_item.getItem().setCreativeTab(tabExample);, it gives me a written book, named written book, with nothing in it...
I know how to set the creative tab for an Item... not an ItemStack i use example_item.setcreativetab(tabExample);, but that's for an item. how would i do it for an itemstack?
I am trying to make a book to my mod filled with information about my mod(recipes, how to obtain items, what items do, etc.) that acts just like a normal written book in the sense that you can click to read it and such. I am trying to create a new book and add NBT data to it, but nothing will work. Can somebody please help me...?