How to save items durability as nbt

Started by lorenzo1 on

Topic category: Help with Minecraft modding (Java Edition)

Joined Nov 2024
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • MCreator plugins:
  • Comments:
How to save items durability as nbt

Hi everyone, i am a new mod creator, and i would like to create a sword that with SHIFT + Mouse Right Click, transforms in to a diffrent one for 30 seconds and then it goes back to the oroginal one. The problem is that when ti goes back to the first one, it clears every enchantment, and the durability refills itself, can someone help me with that? I tried with NBT but it's too difficult.