how to disable item when it almost broken

Started by Ocuel on Tue, 06/14/2022 - 08:33

Topic category: Help with modding (Java Edition)

Last seen on 12:27, 14. Jun 2022
Joined Feb 2022
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • Tracker tickets:
  • MCreator plugins:
  • Comments:
how to disable item when it almost broken
Tue, 06/14/2022 - 08:33

hey, i wanna to disable item(so player can't use it), when item has 1 hp. Can you please help me, how to do it?

Last seen on 09:42, 24. Jul 2022
Joined Dec 2021
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • Tracker tickets:
  • MCreator plugins:
  • Comments:
Mke a procedure if you…
Sat, 07/02/2022 - 18:12

Mke a procedure if you havent yet and add a condition:

If ((get damage of (provided itemstack/other itemstack)) = 1)

actions