Started by dsadasdas on Thu, 03/28/2024 - 14:07 Topic category: Help with Minecraft modding (Java Edition) so would it?? uh idk what to put here i need to extend this to 25 characters Jump to top what Jump to top Permalink Log in or register to post comments if you're gonna reply to me atleast put something useful Jump to top Permalink Log in or register to post comments the random function u have is creating just 1 or 0, so if u want to make a 99% chance, you have to make it this way: if random(0,100) =< 99 This should work. Jump to top Permalink Log in or register to post comments Actually, the 1 to 0 generator generates decimal numbers, so I'm pretty sure either way would work(what you suggested, or the original) Jump to top Permalink Log in or register to post comments yes it would Jump to top Permalink Log in or register to post comments
if you're gonna reply to me atleast put something useful Jump to top Permalink Log in or register to post comments
the random function u have is creating just 1 or 0, so if u want to make a 99% chance, you have to make it this way: if random(0,100) =< 99 This should work. Jump to top Permalink Log in or register to post comments
Actually, the 1 to 0 generator generates decimal numbers, so I'm pretty sure either way would work(what you suggested, or the original) Jump to top Permalink Log in or register to post comments
what
if you're gonna reply to me atleast put something useful
the random function u have is creating just 1 or 0, so if u want to make a 99% chance, you have to make it this way:
if random(0,100) =< 99
This should work.
Actually, the 1 to 0 generator generates decimal numbers, so I'm pretty sure either way would work(what you suggested, or the original)
yes it would