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

Started by MrUnknownName on Mon, 08/24/2015 - 18:56
Last seen on 23:37, 19. Dec 2016
Joined Aug 2015
User points:

Statistics:

  • Comments:
  • Forum topics:
  • Modifications:
  • Wiki pages:
How do I make a block drop a random amount between two numbers?
Mon, 08/24/2015 - 18:56

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.

Last seen on 01:23, 9. Feb 2016
Joined Sep 2015
User points:

Statistics:

  • Comments:
  • Forum topics:
  • Modifications:
  • Wiki pages:
have you tried using the
Tue, 09/08/2015 - 04:36

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

Last seen on 01:23, 9. Feb 2016
Joined Sep 2015
User points:

Statistics:

  • Comments:
  • Forum topics:
  • Modifications:
  • Wiki pages:
you can make it always drop 1
Tue, 09/08/2015 - 05:25

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.