Started by theDisruptor on Mon, 07/08/2024 - 14:10 Topic category: Help with Minecraft modding (Java Edition) How to perform one of ten actions randomly? Jump to top create a local number variable and do this: set localvar to random integer between 1 and 10. if loalvar = 1, do action 1 else if localvar = 2, do action 2 else if localvar = 3, do action 3 else if localvar = 4, do action 4 and so on.... Hope I helped! -PixelKid Jump to top Permalink Log in or register to post comments Thank you Jump to top Permalink Log in or register to post comments
create a local number variable and do this: set localvar to random integer between 1 and 10. if loalvar = 1, do action 1 else if localvar = 2, do action 2 else if localvar = 3, do action 3 else if localvar = 4, do action 4 and so on.... Hope I helped! -PixelKid Jump to top Permalink Log in or register to post comments
create a local number variable and do this:
set localvar to random integer between 1 and 10.
if loalvar = 1, do action 1
else if localvar = 2, do action 2
else if localvar = 3, do action 3
else if localvar = 4, do action 4
and so on....
Hope I helped! -PixelKid
Thank you