Files
executioner.sk
heart_of_the_colossus.sk
inferno_surge.sk
skypiercer.sk
soulrender.sk
tempest_walkers.sk
void_striders.sk
worldbreaker.sk
Code
8 406
worldbreaker.sk
# Worldbreaker โ Cataclysm
# Activation: Swap hands while wearing the Worldbreaker mace.
# Requires Skript 2.6+.
# Place this file in plugins/Skript/scripts/
# Reload with: /sk reload worldbreaker
options:
cooldown: 60 seconds
charge-time: 2 seconds
impact-radius: 10
impact-damage: 6
on swap hand items:
if player's tool is air:
stop
if name of player's tool is not "&8Worldbreaker":
stop
if player's helmet is not air:
if name of player's helmet is "&8Worldbreaker":
stop
if player's chestplate is not air:
if name of player's chestplate is "&8Worldbreaker":
stop
if player's leggings is not air:
if name of player's leggings is "&8Worldbreaker":
stop
if player's boots is not air:
if name of player's boots is "&8Worldbreaker":
stop
if {worldbreaker.cooldown::%uuid of player%} is set:
if {worldbreaker.cooldown::%uuid of player%} is after now:
set {_remaining} to difference between {worldbreaker.cooldown::%uuid of player%} and now
send "&cWorldbreaker is on cooldown for %{_remaining}%." to player
stop
if {worldbreaker.charging::%uuid of player%} is set:
stop
cancel event
set {worldbreaker.cooldown::%uuid of player%} to {@cooldown} after now
set {worldbreaker.charging::%uuid of player%} to true
send "&8&lWORLD BREAKER &7is charging..." to player
play sound "block.beacon.activate" with volume 1.5 and pitch 0.5 at player
loop 10 times:
if player is offline:
delete {worldbreaker.charging::%uuid of player%}
stop
play 20 of enchantment table at player with offset 1, 0.2, 1
play 15 of smoke at player with offset 1.5, 0.1, 1.5
play sound "block.respawn_anchor.charge" with volume 0.5 and pitch 0.7 at player
loop all entities in radius 3 around player:
if loop-entity is a living entity:
if loop-entity is not player:
push loop-entity upwards at speed 0.08
wait 2 ticks
delete {worldbreaker.charging::%uuid of player%}
send "&8&lCATACLYSM!" to player
play sound "entity.generic.explode" with volume 2 and pitch 0.5 at player
play sound "block.anvil.land" with volume 2 and pitch 0.5 at player
loop 20 times:
set {_radius} to loop-number / 2
play 30 of cloud at player with offset {_radius}, 0.1, {_radius}
play 20 of flame at player with offset {_radius}, 0.1, {_radius}
wait 1 tick
loop all entities in radius {@impact-radius} around player:
if loop-entity is a living entity:
if loop-entity is not player:
set {_distance} to distance between loop-entity and player
set {_strength} to 1.8 - ({_distance} / 10)
if {_strength} is less than 0.35:
set {_strength} to 0.35
set {_direction} to vector from player to loop-entity
push loop-entity in direction {_direction} at speed {_strength}
push loop-entity upwards at speed {_strength}
damage loop-entity by {@impact-damage} hearts
ignite loop-entity for 4 seconds
play 12 of explosion at loop-entity with offset 0.4, 0.4, 0.4
loop 20 times:
set {_radius} to loop-number / 2
play 25 of dust at player with offset {_radius}, 0.05, {_radius}
wait 1 tick
play sound "entity.generic.explode" with volume 1.5 and pitch 0.8 at player