How do I make random drops?

Started by Help_Me_Please on Sun, 11/18/2018 - 20:31

Topic category: Help with modding (Java Edition)

Last seen on 21:12, 23. Nov 2018
Joined May 2018
User points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • Tracker tickets:
  • MCreator plugins:
  • Comments:
How do I make random drops?
Sun, 11/18/2018 - 20:31

I am only able to use Random [0,1) and I can't change any numbers in it.

Last seen on 17:54, 29. Oct 2020
Joined Apr 2010
User points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • Tracker tickets:
  • MCreator plugins:
  • Comments:
You can multiply it to get a…
Mon, 11/19/2018 - 12:03

You can multiply it to get a bigger range. Check for the example in the template library.

Last seen on 13:42, 28. Oct 2020
Joined Oct 2018
User points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • Tracker tickets:
  • MCreator plugins:
  • Comments:
Rand generates a decimal in…
Fri, 03/13/2020 - 00:13

Rand generates a decimal in between 0 and 1 so to use it you might do  when [ 0.5 > rand0,1 ] and that will be a 50% chance