How to add a custom number NBT to a player holding a specific item.

Started by FragantA4sheet on Thu, 09/29/2022 - 14:56

Topic category: Help with modding (Java Edition)

Last seen on 00:53, 6. Nov 2022
Joined Jan 2022
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • Tracker tickets:
  • MCreator plugins:
  • Comments:
How to add a custom number NBT to a player holding a specific item.
Thu, 09/29/2022 - 14:56

Hi there, title.

What I'm looking for is how to set a custom number NBT tag to a set number of the entity holding a sword.

I tried to set event/target entity custom number NBT in a procedure and link it to update on holding item tick or when swung or when hit a living entity under the triggers section of the tool, but none of these seem to work, I feel like I'm missing something?