Started by
BuiltbyBricks
on
Topic category: Help with MCreator software
So I have this mob where if you right click it gives you an item, the thing is I want it to have a cooldown. So when I right click it I have to wait __ amount of time till I can do it again. I've been trying to code it so it can do this but I am having trouble. Some help would be much appreciated!
in the procedures there's a cooldown block in the item tab I believe. You need to set the procedure to occur when the item is used (or right clicked on air + ground)
The entity should have a ON ENTITY TICK UPDATE TRIGGER
and WHEN RIGHT CLICKED ON ENTITY.
in the Entity_Tick_Update you will see a EntityNBT called "CoolDownCounter" every 20 is 1 second. change it how you see fit.
Entity_Right_Clicked
https://www.photobox.co.uk/my/photo/full?photo_id=503094977153
Entity_Tick_Update
https://www.photobox.co.uk/my/photo/full?photo_id=503094977158
Ayeeh thanks for the help but the links don't send me were there supposed too. They just send me to the Photobox home page.
Entity_Tick_Update
Entity_right_clicked
Thanks! It worked :D The help is much appreciated!
Don't worry I got it figured out now, thanks for the reply though!
Happy to help