Random numbers

Started by MrAppleSalad on

Topic category: Help with MCreator software

Joined Nov 2014
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • MCreator plugins:
  • Comments:
Random numbers

I made a procedure where when the mob dies one of two possible mobs is supposed to spawn in it's place. Thing is, while the code looks fine and the game launches fine i always get the same mob every time I kill it. It's an if else command with the two options being the 2 mob spawns and it's "if (random [0,1]) = (1)", i don't see why that shouldn't work. I can post a screenshot if need be.

Joined Nov 2014
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • MCreator plugins:
  • Comments:
Thank you so much! That…
Sat, 06/01/2019 - 18:19

Thank you so much! That worked beautifully!