Files
breeze-rod.sk
occhio-dell-occulto.sk
Code
2 108
breeze-rod.sk
options:
item-name: &b&lSussurro Del Vento
command /breezerod [<player>]:
executable by: players
trigger:
if player is not op:
send "&cOnly operators can use this command."
stop
if arg-1 is set:
give arg-1 a breeze rod named "{@item-name}" with lore "&7Premi tasto destro per fendere l'aria." and "&7Attacca un nemico per sottrargli la gravità." and "&7Ogni potere ha il suo tempo di recupero." and "" and "&8Nato da un sussurro tra le nuvole," and "&8questo vento porta la forza della tempesta."
send "&aHai dato &b&lSussurro Del Vento &aa &e%arg-1%&a."
send "&aHai ricevuto &b&lSussurro Del Vento&a." to arg-1
else:
give player a breeze rod named "{@item-name}" with lore "&7Premi tasto destro per fendere l'aria." and "&7Attacca un nemico per sottrargli la gravità." and "&7Ogni potere ha il suo tempo di recupero." and "" and "&8Nato da un sussurro tra le nuvole," and "&8questo vento porta la forza della tempesta."
send "&aHai ricevuto &b&lSussurro Del Vento&a."
on right click:
if player's tool is a breeze rod named "{@item-name}":
if {breeze-rod.dash::%uuid of player%} is set:
if difference between now and {breeze-rod.dash::%uuid of player%} is less than 20 seconds:
send "&cYour Breeze Rod dash is on cooldown."
stop
set {breeze-rod.dash::%uuid of player%} to now
push player in direction of player at speed 1.8
send action bar "&bBreeze dash activated!" to player
on left click:
if player's tool is a breeze rod named "{@item-name}":
if {breeze-rod.launch::%uuid of player%} is set:
if difference between now and {breeze-rod.launch::%uuid of player%} is less than 10 seconds:
send action bar "&cAttack cooldown: &e%10 seconds - (difference between now and {breeze-rod.launch::%uuid of player%})%" to player
stop
set {breeze-rod.launch::%uuid of player%} to now
loop all living entities in radius 4 around player:
if loop-entity is not player:
push loop-entity upwards at speed 1.4
apply levitation 2 to loop-entity for 3 seconds
send action bar "&bAttack activated! &7Cooldown: &e10 seconds" to player
every 1 second:
loop all players:
if loop-player's tool is a breeze rod named "{@item-name}":
set {_dash-status} to "&aReady"
if {breeze-rod.dash::%uuid of loop-player%} is set:
if difference between now and {breeze-rod.dash::%uuid of loop-player%} is less than 20 seconds:
set {_dash-status} to "&c%20 seconds - (difference between now and {breeze-rod.dash::%uuid of loop-player%})%"
else:
delete {breeze-rod.dash::%uuid of loop-player%}
set {_attack-status} to "&aReady"
if {breeze-rod.launch::%uuid of loop-player%} is set:
if difference between now and {breeze-rod.launch::%uuid of loop-player%} is less than 10 seconds:
set {_attack-status} to "&c%10 seconds - (difference between now and {breeze-rod.launch::%uuid of loop-player%})%"
else:
delete {breeze-rod.launch::%uuid of loop-player%}
send action bar "&bDash: %{_dash-status}% &7| &dAttack: %{_attack-status}%" to loop-player