Files
clown-watches.sk
Code
1 106
clown-watches.sk
# Clown Watches
# Place this file in plugins/Skript/scripts/
# Reload with: /sk reload clown-watches
options:
ignis-name: &c&lIgnis Watch
zephyr-name: &b&lZephyr Watch
vector-name: &e&lVector Watch
aero-name: &a&lAero Watch
terra-name: &6&lTerra Watch
shadow-name: &8&lShadow Watch
glacier-name: &3&lGlacier Watch
volt-name: &e&lVolt Watch
command /givewatch <text> [<player>]:
permission: watches.admin
permission message: &cYou do not have permission to use this command.
trigger:
if arg-2 is set:
set {_target} to arg-2
else:
if sender is not a player:
send "&cConsole must specify a target player."
stop
set {_target} to player
if arg-1 is "ignis":
give 1 clock named "{@ignis-name}" with lore "&7Right-click: Fireball Burst" to {_target}
else if arg-1 is "zephyr":
give 1 clock named "{@zephyr-name}" with lore "&7Right-click: Air Pushback" to {_target}
else if arg-1 is "vector":
give 1 clock named "{@vector-name}" with lore "&7Right-click: Hyper Speed" to {_target}
else if arg-1 is "aero":
give 1 clock named "{@aero-name}" with lore "&7Right-click: Float and Levitate" to {_target}
else if arg-1 is "terra":
give 1 clock named "{@terra-name}" with lore "&7Right-click: Ground Quake" to {_target}
else if arg-1 is "shadow":
give 1 clock named "{@shadow-name}" with lore "&7Right-click: Invisibility" to {_target}
else if arg-1 is "glacier":
give 1 clock named "{@glacier-name}" with lore "&7Right-click: Ice Trap" to {_target}
else if arg-1 is "volt":
give 1 clock named "{@volt-name}" with lore "&7Right-click: Lightning Strike" to {_target}
else:
send "&cUsage: /givewatch <ignis|zephyr|vector|aero|terra|shadow|glacier|volt> [player]" to sender
stop
send "&aGiven %{arg-1}% watch to %{_target}%." to sender
on right click holding clock:
if name of player's tool contains "Ignis Watch":
cancel event
if {watch-cooldown::ignis::%uuid of player%} is set:
if difference between now and {watch-cooldown::ignis::%uuid of player%} is less than 30 seconds:
send "&cIgnis Watch is on cooldown." to player
stop
set {watch-cooldown::ignis::%uuid of player%} to now
make player shoot fireball at speed 1.5
apply fire resistance 1 to player for 10 seconds
else if name of player's tool contains "Zephyr Watch":
cancel event
if {watch-cooldown::zephyr::%uuid of player%} is set:
if difference between now and {watch-cooldown::zephyr::%uuid of player%} is less than 20 seconds:
send "&cZephyr Watch is on cooldown." to player
stop
set {watch-cooldown::zephyr::%uuid of player%} to now
loop living entities in radius 5 of player:
if loop-entity is not player:
push loop-entity away from player at speed 2.5
else if name of player's tool contains "Vector Watch":
cancel event
apply speed 3 to player for 8 seconds
apply haste 2 to player for 8 seconds
else if name of player's tool contains "Aero Watch":
cancel event
apply levitation 2 to player for 6 seconds
else if name of player's tool contains "Terra Watch":
cancel event
apply resistance 3 to player for 10 seconds
loop living entities in radius 6 of player:
if loop-entity is not player:
apply slowness 2 to loop-entity for 5 seconds
else if name of player's tool contains "Shadow Watch":
cancel event
apply invisibility 1 to player for 8 seconds
else if name of player's tool contains "Glacier Watch":
cancel event
loop living entities in radius 4 of player:
if loop-entity is not player:
set block at location of loop-entity to ice
apply slowness 3 to loop-entity for 5 seconds
else if name of player's tool contains "Volt Watch":
cancel event
strike lightning at targeted block