Need help with durability on special/multitool weapons

Started by bielles on

Topic category: Help with Minecraft modding (Java Edition)

Joined Oct 2023
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • MCreator plugins:
  • Comments:
Need help with durability on special/multitool weapons

For some reason, and I don't know why my special and multitool tools use 2 durability when hitting something, even on creative mode. I looked at all my procedures and I still don't know what's wrong

Joined May 2024
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • MCreator plugins:
  • Comments:
It uses 2 durability becauseā€¦
Thu, 12/26/2024 - 20:19

It uses 2 durability because that's how durability works in Minecraft. Attacking entities with anything that isn't specifically a sword, mace, or trident will lose 2 durability points rather than one. Though curiously, it does seem to lose durability no matter the game mode.

 

Though there is an easy fix to this, and it is with this procedure activated when a living entity is hit with tool: