How would I make a vanilla block drop custom items?

Started by tazzan on Fri, 11/13/2020 - 02:40

Topic category: Help with MCreator software

Last seen on 21:00, 25. Jan 2021
Joined Oct 2016
User points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • Tracker tickets:
  • MCreator plugins:
  • Comments:
How would I make a vanilla block drop custom items?
Fri, 11/13/2020 - 02:40

I want to make it so whenever you mine an iron ore it drops a certain item. I don't know how to specify in procedures that it should only drop from iron ores. Any help?

Last seen on 03:49, 26. Jan 2021
Joined Jul 2020
User points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • Tracker tickets:
  • MCreator plugins:
  • Comments:
use procedures, like this:…
Fri, 11/13/2020 - 05:02

use procedures, like this:

external procedure when player leftclicks block

if block at x y z = iron ore

spawn gem at x y z [item]

 

Last seen on 02:56, 17. Jan 2021
Joined Dec 2017
User points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • Tracker tickets:
  • MCreator plugins:
  • Comments:
You would use the trigger…
Fri, 11/13/2020 - 07:42

You would use the trigger When Block Destroyed or something, not on computer to look, and like bananarang says, if block = iron ore, spawn your item

Last seen on 21:00, 25. Jan 2021
Joined Oct 2016
User points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • Tracker tickets:
  • MCreator plugins:
  • Comments:
I would do that but there is…
Fri, 11/13/2020 - 13:36

I would do that but there is no "if block =" block.

Last seen on 21:00, 25. Jan 2021
Joined Oct 2016
User points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • Tracker tickets:
  • MCreator plugins:
  • Comments:
What would happen if you do…
Fri, 11/13/2020 - 13:37

What would happen if you do that is whenever you left click the block (not just mine it) it'd spawn the item, which would make it easily farmable

Last seen on 02:56, 17. Jan 2021
Joined Dec 2017
User points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • Tracker tickets:
  • MCreator plugins:
  • Comments:
It's in the bottom of the…
Fri, 11/13/2020 - 17:35

It's in the bottom of the block category "block at x y z", you put that with an if statement,.