Item-NBT-API icon indicating copy to clipboard operation
Item-NBT-API copied to clipboard

Problem with Compound

Open Yoojexo opened this issue 1 year ago • 1 comments

A huge problem that prevents me from using Compound, which I really need. The point is that when I create a Compound via getOrCreateCompound() it is created and I can enter data into it and create another Compound in it, etc., but when I try to get the Compound from the item, it returns a null value, and the type is set to NBTTagEnd. In the screenshot below you can see that I output the contents of nbt with ItemStack as json, and below I tried to get data, and also checked the type of each tag.

Modifying and reading data from an item

Yoojexo avatar Oct 01 '24 16:10 Yoojexo

Without the code to the screenshot, I can't tell you much.

tr7zw avatar Oct 01 '24 16:10 tr7zw