How would I make a vanilla block drop custom items?

Started by tazzan on

Topic category: Help with MCreator software

Joined Oct 2016
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • MCreator plugins:
  • Comments:
How would I make a vanilla block drop custom items?

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?

Joined Jul 2020
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • 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]

 

Joined Dec 2017
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • 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

Joined Oct 2016
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • 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.

Joined Oct 2016
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • 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

Joined Dec 2017
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • 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,.

Joined Dec 2019
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • MCreator plugins:
  • Comments:
In 2022.1V you can do this: …
Fri, 07/01/2022 - 18:15

In 2022.1V you can do this:

The "is x the same block as x" is in Logic section, and spawn item/gem is in World Management.