Started by
BlaBlaSillySheep
on
Topic category: User side tutorials
I'm making a lucky block mod and i don't know how to make a random drop appear when the block is broken( so for instance i break the lucky block and a diamond comes out, the next time i break it TNT appears)
Short answer: Yes
Long answer: You use the 'random 0,1' procedure block in an if statement to make an effect that has a random chance of triggering. Simply put more of these connected to the if statement via else if, and you have more effects.
https://www.youtube.com/watch?v=SBtTsNYiHzw
Lucky block. Instead of "place block at xyz" use "spawn gem at xyz"
I know you already got the answer, but still, I suggest you check our tutorials collection playlist on our YouTube channel which contains many examples and tutorials that can help you get started with MCreator: https://www.youtube.com/playlist?list=PLAeL-oIFIEngE6jRgFYeFMfuj8WQsO3Ei