How can I make this

Started by Xedroc on Sun, 12/01/2019 - 19:38

Topic category: General discussion

Last seen on 22:11, 7. Dec 2019
Joined Jan 2019
User points:

Statistics:

  • Comments:
  • Forum topics:
  • Modifications:
  • Wiki pages:
  • Tracker tickets:
How can I make this
Sun, 12/01/2019 - 19:38

I want to make a procedure that makes a tool able to give you an item when an specific block is destroyed.

0Upvote this forum topic
Last seen on 21:42, 5. Dec 2019
Joined Aug 2019
User points:

Statistics:

  • Comments:
  • Forum topics:
  • Modifications:
  • Wiki pages:
  • Tracker tickets:
On Block Destroyed: if item…
Thu, 12/05/2019 - 10:41

On Block Destroyed:

if item in main hand = (Your item)

spawn gem at xyz.

---

Make sure to use the single = operator (and not the ==) as == would prevent the if statement from returning True if the item isn't at full durability.

1Upvote this forum topic