NBT-API

NBT-API

98.9k Downloads

Problem with Compound

Yoojexo opened this issue ยท 1 comments

commented

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

commented

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