Consuming food item has 50/50 chance of good or bad outcome

Started by Zomber566 on

Topic category: Help with Minecraft modding (Java Edition)

Joined Apr 2020
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • MCreator plugins:
  • Comments:
Consuming food item has 50/50 chance of good or bad outcome

So I am trying to make a food item that has a 50/50 chance of either giving the player fire resistance or setting the player on fire, but I don't know how to make it work, and I haven't found any tutorials online, please help

Joined Feb 2019
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • MCreator plugins:
  • Comments:
Use random  random gives…
Sun, 05/02/2021 - 00:51

Use random 
random gives numbers from 0 to 0.99999 (a lot of nines xd)
then you could use tigger "when food eaten".
put something like this
https://imgur.com/a/LC9pWsU

Joined Feb 2019
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • MCreator plugins:
  • Comments:
nice profile photo xd  
Sun, 05/02/2021 - 00:51

nice profile photo xd

 
I suggest you check our…
Sun, 05/02/2021 - 07:22

I suggest you check our tutorials collection playlist on our YouTube channel which contains many examples and tutorials that can help you get started with MCreator: https://www.youtube.com/playlist?list=PLAeL-oIFIEngE6jRgFYeFMfuj8WQsO3Ei