How do i make a procedure "When the item/tool break" ?

Started by Sitonic on Thu, 02/25/2021 - 04:41

Topic category: Help with MCreator software

Last seen on 19:12, 18. Mar 2021
Joined Dec 2019
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • Tracker tickets:
  • MCreator plugins:
  • Comments:
How do i make a procedure "When the item/tool break" ?
Thu, 02/25/2021 - 04:41

Obs: I'm Brazilian and I don't speak English very well, sorry.

 

In the "Triggers" tab for items, tools and armor, there is no "when to break" procedure. How do I procedure this manually?

Last seen on 18:19, 17. Mar 2021
Joined Feb 2021
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • Tracker tickets:
  • MCreator plugins:
  • Comments:
Hey, I'm Brazilian too :)!…
Thu, 02/25/2021 - 14:36

Hey, I'm Brazilian too :)!
Well, you can do the following:
1- Use the trigger when the tool is in hand
2- In item procedures, there is the following method: take the item's durability (or something)
3- Using the If block, check if the durability is 0
4- Then put what you want to do.

If it doesn't work you can use a loop:
1- While the tool is in the main hand = "tool name", if the item’s durability is = 0, do something 

Last seen on 19:12, 18. Mar 2021
Joined Dec 2019
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • Tracker tickets:
  • MCreator plugins:
  • Comments:
 I will test, thanks.
Fri, 02/26/2021 - 03:56

 I will test, thanks.