So im trying to make a cutlas skript to make a sweeping edge effect i have this:
on left click:
if name of tool is "&fSailers Cutlas":
set {_cutlasDamage} to random integer between 1 and 8
set {_cutlas} to difference between {cutlas.%player%.cooldown} and now
if {_cutlas} is less than 10 seconds:
message "&cYou need to wait &r&e&n%difference between 10 seconds and {_scythe}%&r&c before you can use that skill again!"
else:
loop all entities in radius 5 around location of executor:
if loop-entities isn't "%player%":
make player damage loop-entity by {_cutlasDamage} in half hearts
play sound "entity.player.attack.sweep" with volume 1 and pitch 1 at all players for all players
make player execute command "particle minecraft:sweep_attack ^ ^1 ^0.8"
show "minecraft:sweep_attack" at %player%
set {cut;as.%player%.cooldown} to now
exit loop
but nothing works and i need help!
on left click:
if name of tool is "&fSailers Cutlas":
set {_cutlasDamage} to random integer between 1 and 8
set {_cutlas} to difference between {cutlas.%player%.cooldown} and now
if {_cutlas} is less than 10 seconds:
message "&cYou need to wait &r&e&n%difference between 10 seconds and {_scythe}%&r&c before you can use that skill again!"
else:
loop all entities in radius 5 around location of executor:
if loop-entities isn't "%player%":
make player damage loop-entity by {_cutlasDamage} in half hearts
play sound "entity.player.attack.sweep" with volume 1 and pitch 1 at all players for all players
make player execute command "particle minecraft:sweep_attack ^ ^1 ^0.8"
show "minecraft:sweep_attack" at %player%
set {cut;as.%player%.cooldown} to now
exit loop
but nothing works and i need help!