Topic category: General discussion
So the problem is that the variable you mention to create the recovery system is local, which means it can only be called in this procedure. This also means that even if you have a while loop counting down, that number is mostly invalid after the procedure has been executed or called again, as the while loop will keep resetting itself. This leads to another problem with variables in MCreator, the only 2 types of variables you can use are local and global, both of which cannot be used to specify a variable for a single object or player. I've tried this before, and my only other solution is to craft some sort of item that prevents the player from using the ability or anything else on cooldown.