Is there a way to make some entity (for example tree) drop random items from predefined selection? Like, idk, random amount of wood, leaves etc.
I mean, if you destroy that tree, there is like 50% chance that it will drop some special item.
Random drop
Re: Random drop
You can declare a on_preplayer_mined_item event and give the player a random amount of items
Re: Random drop
Yes, you can define the "loot" as a percent chance to drop for any entity. You can also define the mining results as a percent chance to give any item.SPolygon wrote:Is there a way to make some entity (for example tree) drop random items from predefined selection? Like, idk, random amount of wood, leaves etc.
I mean, if you destroy that tree, there is like 50% chance that it will drop some special item.
If you want to get ahold of me I'm almost always on Discord.