How to make procedure to check item durability?

Started by Trinicrafter10 on

Topic category: Help with MCreator software

Last seen on 04:39, 13. Nov 2023
Joined Oct 2014
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • MCreator plugins:
  • Comments:
How to make procedure to check item durability?

How do I make a procedure to check item durability? Is this even possible? I want there to be a specific effect once an item reaches a certain durability.

Last seen on 22:18, 7. Feb 2022
Joined Oct 2018
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • MCreator plugins:
  • Comments:
I think that would be "get…
Sun, 05/10/2020 - 11:02

I think that would be "get damage of the provided item" in the item procedures

Last seen on 04:39, 13. Nov 2023
Joined Oct 2014
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • MCreator plugins:
  • Comments:
Thanks, I noticed that 3…
Mon, 05/11/2020 - 19:21

Thanks, I noticed that 3 durability is 0.3 and so on, it goes up in 10s for some reason.

Last seen on 06:40, 26. Aug 2020
Joined Jul 2020
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • MCreator plugins:
  • Comments:
can you send a picture, i…
Fri, 07/24/2020 - 13:24

can you send a picture, i still don't get how it works, it would help alot.

Last seen on 19:12, 16. Apr 2023
Joined May 2021
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • MCreator plugins:
  • Comments:
I can't figure it out either…
Sat, 06/05/2021 - 13:16

I can't figure it out either. I'm trying to detect when a tool gets to 3 durability, I've tried 3, 0.3, neither work.

Last seen on 19:12, 16. Apr 2023
Joined May 2021
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • MCreator plugins:
  • Comments:
Nevermind I figured it out…
Sat, 06/05/2021 - 13:40

Nevermind I figured it out lol. I made a procedure that just broadcasts your item durability to the chat whenever you break a block. Here are the results:

Durability: 18, Durability: 19, Durability, 20, etc.

The "get damage of the provided item" block in procedures checks for the damage to the item, not the durability.

Last seen on 19:12, 16. Apr 2023
Joined May 2021
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • MCreator plugins:
  • Comments:
Well the image isn't working…
Sat, 06/05/2021 - 13:41

Well the image isn't working but here is what it said in the chat:

Durability is 0

Durability is 1

Durability is 2

Durability is 3

Durability is 4

and so on, as I broke blocks with a wooden shovel.

Last seen on 15:51, 16. Jan 2024
Joined Feb 2020
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • MCreator plugins:
  • Comments:
so how?
Thu, 03/31/2022 - 19:29

so how?

Last seen on 19:12, 16. Apr 2023
Joined May 2021
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • MCreator plugins:
  • Comments:
Since that specific block…
Fri, 04/01/2022 - 00:00

Since that specific block checks the damage to the item and not the durability, to find the durability just subtract the damage from the total durability. I don't remember the exact name of the block but there should be one like "max durability of [item]". So use max durability - damage of item