on right click:
if player's tool = netherite sword:
if name of player's tool = "&4&lNether's Core":
if {cooldown::%player%} is not set:
set the cooldown of player's tool for player to 30 seconds
set {cooldown::%player%} to 30
set {_pos} to location 0 above player
set {_p} to player
play sound "block.beacon.activate" to player
make console execute command "/effect give %{_p}% minecraft:strength 10 2 false"
set {s::%player%} to 10
loop 360 times:
add 1 to yaw of {_pos}
draw 1 flame at (location 1 in front of {_pos}) with extra -0.1 with force
on player's held item change:
if tool is not a netherite sword named "&4&lNether's Core":
remove strenght from the player
loop 30 times:
remove 1 from {cooldown::%player%}
delete {cooldown::%player%}
else:
cancel event
send "&cAbility is still at &e%{cooldown::%player%}%&c seconds of cooldown!" to player
#effect
1 messages · Page 1 of 1 (latest)
there should be an error, because you can't put events within events
line 15 is the start of another event, it can't be inside your rightclick event
remove 1 from {cooldown::%player%}
you are looping 30 times and removing from a variable without waiting 1 second
which is why the cooldown is not working
yeah that on player's held item change event should be moved outside of the other event
Ye line 15 gives error
Should have started by saying that, but its because you're trying to use an event within an event
instead of console commands, use skript effects