Trident Durability

Started by woodcreatures on

Topic category: Help with Minecraft modding (Java Edition)

Joined Mar 2021
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • MCreator plugins:
  • Comments:
Trident Durability

I have my custom trident, the problem is that anytime I throw it, when I pick it up again then the durability is resetted so basically my trident will never break

Anyone cah give a full procedure in order to keep save the item durability ? So when I throw it and pick it up again then the item will be not new

 

Joined Jul 2022
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • MCreator plugins:
  • Comments:
Make a number nbt/data…
Tue, 05/05/2026 - 20:07

Make a number nbt/data/property on your trident item. On thrown ie spawned the trident entity/projectile, apply that number onto the entity as an nbt. When picked back up again get the nbt number from the entity and apply it to the item as it is given. During throwing/spawning you can remove durability if necessary.

If the procedures are not connected then use a player variable to record the number between picking up the trident and giving the new one. And then reset it.

Joined Mar 2021
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • MCreator plugins:
  • Comments:
Here is complicated since…
Wed, 05/06/2026 - 05:32

Here is complicated since you have 2 different ones, Item and Projectile

You throw the item but the projectile is actually thrown and then you re pick up the item

Would you please send a screenshot for the above procedure ?

Joined Jul 2022
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • MCreator plugins:
  • Comments:
Show me how you do your…
Wed, 05/06/2026 - 09:06

Show me how you do your current trident procedures, a projectile is an entity

Joined Mar 2021
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • MCreator plugins:
  • Comments:
have no idea at all, Im…
Wed, 05/06/2026 - 10:18

have no idea at all, Im stucked

Give me some clear hints please

Joined Mar 2021
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • MCreator plugins:
  • Comments:
anyone can help here ?
Thu, 05/07/2026 - 05:21

anyone can help here ?

Joined Jul 2025
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • MCreator plugins:
  • Comments:
I could really use that too,…
Mon, 06/08/2026 - 19:36

I could really use that too, can anyone give a way to do it (procedure(s) or custom code) ??