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

Started by playextreme on

Topic category: Help with Minecraft modding (Java Edition)

Active 1 year ago
Joined May 2016
Points:
713

User statistics:

  • Modifications: 0
  • Forum topics: 2
  • Wiki pages: 0
  • MCreator plugins: 0
  • Comments: 2
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)

Active 1 week ago
Joined Sep 2016
Points:
951

User statistics:

  • Modifications: 4
  • Forum topics: 9
  • Wiki pages: 0
  • MCreator plugins: 0
  • Comments: 336
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

Active 1 year ago
Joined May 2016
Points:
713

User statistics:

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

Thanks, it's works!