Im trying to make it so that when a piece of your armor breaks it is replaced with a lower tier piece.

Started by nourelqamed on

Topic category: Help with Minecraft modding (Java Edition)

Joined May 2025
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • MCreator plugins:
  • Comments:
Im trying to make it so that when a piece of your armor breaks it is replaced with a lower tier piece.
Fri, 05/09/2025 - 12:29 (edited)

So, for Example, if a piece of netherite armor breaks, it is replaced with a piece of diamond armor. The problem is i dont know how to detect if a piece of armor breaks and i need help with that

How can i detect if armor breaks

Thanks

Edited by nourelqamed on Fri, 05/09/2025 - 12:29
Joined Mar 2024
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • MCreator plugins:
  • Comments:
you can check durability of…
Fri, 05/09/2025 - 12:47

you can check durability of armor (if = 1, then replace)
i think it will be better cause player can lose netherite armor (no one likes to lose expensive items)