How to store a number in a item

Started by Purple19842 on

Topic category: Help with Minecraft modding (Java Edition)

Joined Feb 2022
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • MCreator plugins:
  • Comments:
How to store a number in a item

I havent used MCreator in years, and just coming back to it, how would I store a number in an item?
its unstackable, and it needs to store a number.
i saw in the procedure section, that you can set a custom data number tag to the item, however, I don't know how to add this tag only once. is there some way to see if a tag exists on the item?
or is there a better way to do it?
can I just attach a variable to the item?