How do I make a block drop a random amount between two numbers?

3 posts / 0 new
Last post
Offline
Last seen: 2 months 2 days ago
Joined: 08/23/2015 - 03:52
Gems: 0
How do I make a block drop a random amount between two numbers?

How do I make a block dorp a random amount of an item when mined? When I put something like, "math.Random(1,3) " it changes it to 0. Please help.



Offline
Last seen: 1 year 1 week ago
Joined: 09/08/2015 - 00:10
Gems: 0
have you tried using the

have you tried using the variable list for the random ammount and using When block destroyed by player event

I am new to this so sorry if it is confusing rather htan helpful

Offline
Last seen: 1 year 1 week ago
Joined: 09/08/2015 - 00:10
Gems: 0
you can make it always drop 1

you can make it always drop 1 and sometimes drop 2. In the droping properties check doesn't drop self and select the item you want dropped. Then in the events section, add a When Block Destroyed by Player event. Select the apawn gem event an select your item. In the pulldown menue labled (in all cases) select randomPossibility and enter your percent chance.

you may be able to add more than one of these events with varing possibilities to drop more.