Random Number 0-1 Always Outputs 1

Started by JNtheWolf on Fri, 06/05/2020 - 18:13

Topic category: Help with MCreator software

Last seen on 16:02, 28. Apr 2021
Joined Apr 2020
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • Tracker tickets:
  • MCreator plugins:
  • Comments:
Random Number 0-1 Always Outputs 1
Fri, 06/05/2020 - 18:13

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!

Last seen on 04:35, 17. Jan 2021
Joined Sep 2019
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • Tracker tickets:
  • 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?

Last seen on 16:02, 28. Apr 2021
Joined Apr 2020
Points:

User statistics:

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

Thanks! This worked.