I have a throwable tnt skript but i wanted to make that have a cooldown so i merged my another skript that had a cooldown with this skript but i couldn't get it to work, any help ?
Code:
on leftclick holding tnt:
if name of event-item is "&1&lDinamit":
set {_waited} to difference between {cooldown::%player%::epearl} and now
if {_waited} is less than 45 seconds:
send "&d&lTekrar &c&lDinamit &d&latman için &a&l%difference between 45 seconds and {_waited}% &d&lbeklemelisin!" to player
cancel the event
else:
player has 1 tnt
set {cooldown::%player%::epearl} to now
spawn a primed tnt 1 meter above the player
push the spawned entity in direction of player at speed 0.9
push the spawned entity upwards at speed 0.2
remove 1 tnt from player
Last edited: