Started by
AxoMcreator
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