Storing data in an item? #1745
Unanswered
altooma
asked this question in
Mod Dev Support
Replies: 2 comments
-
Data for items goes in the ItemStack. It lets you have custom NBT tags for storing data. For the random quest data, I guess you will need to write your own LootFunction and register it. |
Beta Was this translation helpful? Give feedback.
0 replies
-
I've created a library that provides much more features than simple fetching data from an You might want to check it out too, @altooma . |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
I'm looking to create an item that generates a unique quest (e.g kill 10 zombies) on the items creation in the world. This would mean that each item of the same class would have a randomly generated quest associated to its individual data, using nbt or some other method?
The item would be found in loot tables or bought from villagers so when it is generated in these events the random quest would be assigned to the item. This is just a broad concept and I am interested in any way that this could be achieved.
Beta Was this translation helpful? Give feedback.
All reactions