Started by
Mahito
on
Topic category: Troubleshooting, bugs, and solutions
the code is working just fine if i ditch the variables and random numbers and just summon an entity, so i assume the problem is in the random part?
Topic category: Troubleshooting, bugs, and solutions
the code is working just fine if i ditch the variables and random numbers and just summon an entity, so i assume the problem is in the random part?
You will need to use random integer instead of random number.
Random number generates a number like 1.328397562134977 which will almost certainly never be equal to exactly 1 or exactly 2
try using something like this for randomization,
tysm!!, using integer solved the problem
Keep in mind the server and client side differences when using random procedures.
See https://mcreator.net/wiki/developing-multiplayer-compatible-mods