Started by
SlipkiffyWasTaken
on
Topic category: Help with MCreator software
I've started making a mod with new dimensions, and I've made a custom tree, with custom leaves, but I can't figure out how to make the leaves have like a 1% chance of dropping my custom poisonous apple.
Use loot tables or procedures for this.
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
If you don't want to use loot tables, you can use a custom procedure using the "random number between 0 and 1" block. Just make a procedure using the "on block broken" event in your leaves block triggers page. Then inside that procedure, do something along the lines of:
If (random number between 0 and 1) < .01
Do: spawn gem (poisonous apple) at (x y z).
That would give a 1% chance for the item (poisonous apple, a gem is the name of an item) to drop where the leaves are when the leaves are broken.