random chance produces?

Started by Sleaslug on

Topic category: Help with Minecraft modding (Java Edition)

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

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