Random Number 0-1 Always Outputs 1

Started by JNtheWolf on

Topic category: Help with MCreator software

Joined Apr 2020
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • MCreator plugins:
  • Comments:
Random Number 0-1 Always Outputs 1

For the random 0-1 block, I created a procedure that goes like: If random 0-1 = 0 then spawn gem, else spawn a different gem. I repeated this multiple times to create a bunch of different chances, but I only ever get one outcome, even though I broke over 100 blocks. It only ever drops one thing, even though there's 20 different drops. The random 0-1 always comes out with 1, and never seems to come out with 0.

If anyone knows how to fix this, please let me know

Thanks!

Joined Sep 2019
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • MCreator plugins:
  • Comments:
The random 0-1 always comes…
Fri, 06/05/2020 - 18:15

The random 0-1 always comes out with 1

How do you know this, did you do prints?

Joined Apr 2020
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • MCreator plugins:
  • Comments:
Thanks! This worked.
Sat, 06/06/2020 - 08:56

Thanks! This worked.