How to make a block drop random things?

Started by _Cr1ssG4m3r_ on

Topic category: Help with MCreator software

Joined Jan 2018
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • MCreator plugins:
  • Comments:
How to make a block drop random things?

I need to make a block that when I right click it drops different specific items and randomly, how can I do it?

Joined Aug 2019
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • MCreator plugins:
  • Comments:
https://www.youtube.com…
Tue, 09/24/2019 - 00:04

https://www.youtube.com/watch?v=SBtTsNYiHzw

Called on block right clicked:

set local Rand = random[0,1]

if Rand < 0.25

do spawn gem [NameOfItem] at xyz

else if Rand < 0.5

do spawn gem [NameOfItem2] at xyz

else if Rand < 0.75

do spawn gem [NameOfItem3] at xyz

else

do spawn gem [NameOfItem4] at xyz

Joined Sep 2016
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • MCreator plugins:
  • Comments:
i made this for mobs; a egg…
Fri, 07/10/2020 - 23:34

i made this for mobs; a egg item (spawn egg) that when clicked on block spawn 4 types of mobs or 4 mobs of the same model with diferent textures, you still need to have a entity file for each thou: (25% chance each):

 

a