(Solved) How to add variables to each tool player has

Started by wrb1068 on

Topic category: Help with Minecraft modding (Java Edition)

Joined Jul 2017
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • MCreator plugins:
  • Comments:
(Solved) How to add variables to each tool player has
Sat, 03/26/2022 - 14:05 (edited)

(This text was translated using DeepL and may be incorrectly phrased, etc.)
Hello, I do not know how to add variables to each tool a player has. For example, is there a way to show the number of kills with the sword the player has, as shown in the image?

Image of a wooden sword named "Sword (0 kill)"

Image of a wooden sword named "Sword (100 kill)"

Image of a stone sword named "Other Sword (10 kill)"

 

 

 

 

 

Edited by wrb1068 on Sat, 03/26/2022 - 14:05
Joined Jul 2017
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • MCreator plugins:
  • Comments:
Using NBT tags solved theā€¦
Sat, 03/26/2022 - 14:06

Using NBT tags solved the problem.