How to make procedure to check item durability?

Started by Trinicrafter10 on Sun, 05/10/2020 - 01:28

Topic category: Help with MCreator software

Last seen on 16:52, 19. Jun 2021
Joined Oct 2014
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • Tracker tickets:
  • MCreator plugins:
  • Comments:
How to make procedure to check item durability?
Sun, 05/10/2020 - 01:28

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 16:59, 16. May 2021
Joined Oct 2018
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • Tracker tickets:
  • 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 16:52, 19. Jun 2021
Joined Oct 2014
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • Tracker tickets:
  • 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:
  • Tracker tickets:
  • 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 20:50, 23. Jul 2021
Joined May 2021
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • Tracker tickets:
  • 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 20:50, 23. Jul 2021
Joined May 2021
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • Tracker tickets:
  • 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 20:50, 23. Jul 2021
Joined May 2021
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • Tracker tickets:
  • 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.