Started by
Real_bizzy
on
Topic category: Help with Minecraft modding (Java Edition)
So I want procedures to have a cooldown, say when someone uses a procedure once, they cant use it for 1200 more ticks
Topic category: Help with Minecraft modding (Java Edition)
So I want procedures to have a cooldown, say when someone uses a procedure once, they cant use it for 1200 more ticks
you can either create a effect that lasts 1200 ticks and have it so the procedure won't run if that effect is active for the player.
Or you can have at the end of the procedure, set variable "procedurename" cooldown to 1 then wait 1200 ticks then set it to 0. At the beginning, have it check if the variable is 0 and if it is continue, otherwise text "this is on cooldown" to player. Have the variable a player persistant ot player lifetime as a number variable.
-PixelKid
ok thanks!