random chance produces?

Started by Sleaslug on

Topic category: Help with modding (Java Edition)

Last seen on 01:17, 12. Jul 2021
Joined May 2021
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • MCreator plugins:
  • Comments:
random chance produces?

hello, i want to know how to give something a random chance at happening, like if i right click something theres a random chance it will have a text appear, and the chance can pick diiferent texts each time, 

 

please help me

 

 

discord: Sleaslug#1236

Last seen on 13:41, 6. Aug 2021
Joined Jul 2021
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • MCreator plugins:
  • Comments:
if random 0,1 is < or equal…
Fri, 07/23/2021 - 20:01

if random 0,1 is < or equal 0.14 (14% chance) then do stuff

Hope this helps