How to make a block drop an item when i right clicked

Started by playextreme on

Topic category: Help with modding (Java Edition)

Last seen on 10:55, 9. Jul 2023
Joined May 2016
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • MCreator plugins:
  • Comments:
How to make a block drop an item when i right clicked

I'm want create a plant, that when you click in with right mouse click, it broken and drop a fruit.

But I don't know how to do this, someone can help me?

(Sorry for my english)

Last seen on 23:11, 16. Jul 2023
Joined Sep 2016
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • MCreator plugins:
  • Comments:
Isn't there an event in the…
Wed, 08/19/2020 - 11:49

Isn't there an event in the element? If there is, get inside, make a procedure with a "set block x y z (put air here)" and a "spawn gem x y z (your fruit)" and done

Last seen on 10:55, 9. Jul 2023
Joined May 2016
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • MCreator plugins:
  • Comments:
Thanks, it's works!
Fri, 08/21/2020 - 11:06

Thanks, it's works!