Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Problem with Compound #299

Open
Yoojexo opened this issue Oct 1, 2024 · 1 comment
Open

Problem with Compound #299

Yoojexo opened this issue Oct 1, 2024 · 1 comment

Comments

@Yoojexo
Copy link

Yoojexo commented Oct 1, 2024

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

@tr7zw
Copy link
Owner

tr7zw commented Oct 1, 2024

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants