Started by
Shadyks
on
Topic category: Help with MCreator software
I'm sorry but I don't understand English so I'm doing this in a translator. I create a bandage in the mcreator which, when you press the right mouse button, imposes a regeneration effect; when I click on the air, everything works and the cooldown does not allow the item to be used, but when I click on a block, a cooldown animation appears on the item, but it can still be used by continuing to click on the block.
I've just created something exactly the same and it works fine. Could you possibly send images of your code? If so, I might be able to help.
https://ibb.co/g6hvw7m
Your code seems like it should work. Is your procedure on 'Right-clicked block' or 'right-clicked?'
Also, what version of Mcreator are you on?
I'm on v2023.3 and here is the (working) code I made
https://photos.google.com/photo/AF1QipNhYW2KdijeRVvSYvrLgiQ1lYLvin8BsLf3UxhS
If you're cooldown does not work try making an effect that applies to the player preventing them from using the item until the effect ends