Topic category: Help with modding (Java Edition)
I have a procedure that has a local number variable. The variable would be set to 0-10 (random 0,1 * 10), and depending on the number rolled a thing will happen. So spawn tnt when number is 1, spawn a parrot when it's 2, etc.
But the number isn't getting rolled. Actually, it is, but after the procedure is finished. Everything is happening at one tick, and that one tick has the number 0 set, only the tick after this one will be rolled. What I would do to fix this is to add "wait 1 tick" block to the rest of the procedure, but that gives me an error that you can't do that on variables. So, how do I fix this?