Files
crowns.sk
Code
1 124
crowns.sk
# 8 Crowns Skript
# Compatible with Minecraft 1.20.6 / 1.21+
# Place this file in plugins/Skript/scripts/
on right click:
if name of player's held item is "&e&lThunder Crown":
cancel event
if {cooldown.thunder::%player%} is set:
if difference between {cooldown.thunder::%player%} and now is less than 10 seconds:
send "&cWait before using this again!" to player
stop
set {cooldown.thunder::%player%} to now
set {_target} to targeted block
if {_target} is set:
strike lightning at {_target}
apply speed 2 to player for 8 seconds
play sound "entity.lightning_bolt.thunder" at player
on right click:
if name of player's held item is "&c&lFire Crown":
cancel event
if {cooldown.fire::%player%} is set:
if difference between {cooldown.fire::%player%} and now is less than 8 seconds:
send "&cWait before using this again!" to player
stop
set {cooldown.fire::%player%} to now
shoot a fireball from player
apply fire resistance 1 to player for 15 seconds
play sound "entity.ghast.shoot" at player
on right click:
if name of player's held item is "&b&lSpeed Crown":
cancel event
if {cooldown.speed::%player%} is set:
if difference between {cooldown.speed::%player%} and now is less than 12 seconds:
send "&cWait before using this again!" to player
stop
set {cooldown.speed::%player%} to now
apply speed 3 to player for 10 seconds
apply jump boost 2 to player for 10 seconds
play sound "entity.ender_dragon.flap" at player
on right click:
if name of player's held item is "&2&lPoison Crown":
cancel event
if {cooldown.poison::%player%} is set:
if difference between {cooldown.poison::%player%} and now is less than 15 seconds:
send "&cWait before using this again!" to player
stop
set {cooldown.poison::%player%} to now
loop all living entities in radius 10 around player:
if loop-entity is not player:
apply poison 2 to loop-entity for 6 seconds
apply wither 1 to loop-entity for 4 seconds
play sound "entity.witch.drink" at player
on right click:
if name of player's held item is "&8&lShadow Crown":
cancel event
if {cooldown.shadow::%player%} is set:
if difference between {cooldown.shadow::%player%} and now is less than 15 seconds:
send "&cWait before using this again!" to player
stop
set {cooldown.shadow::%player%} to now
apply invisibility 1 to player for 8 seconds
loop all living entities in radius 8 around player:
if loop-entity is not player:
apply blindness 1 to loop-entity for 5 seconds
play sound "entity.wither.spawn" at player
on right click:
if name of player's held item is "&6&lUltimate Crown":
cancel event
if {cooldown.ultimate::%player%} is set:
if difference between {cooldown.ultimate::%player%} and now is less than 20 seconds:
send "&cWait before using this again!" to player
stop
set {cooldown.ultimate::%player%} to now
apply strength 2 to player for 8 seconds
apply regeneration 2 to player for 8 seconds
apply resistance 2 to player for 8 seconds
play sound "ui.toast.challenge_complete" at player
on right click:
if name of player's held item is "&a&lCrown AIM":
cancel event
if {cooldown.aim::%player%} is set:
if difference between {cooldown.aim::%player%} and now is less than 10 seconds:
send "&cWait before using this again!" to player
stop
set {cooldown.aim::%player%} to now
loop 5 times:
shoot an arrow from player
wait 2 ticks
play sound "entity.arrow.shoot" at player
on right click:
if name of player's held item is "&4&lKirmada Crown":
cancel event
if {cooldown.kirmada::%player%} is set:
if difference between {cooldown.kirmada::%player%} and now is less than 25 seconds:
send "&cWait before using this again!" to player
stop
set {cooldown.kirmada::%player%} to now
apply strength 2 to player for 10 seconds
apply speed 2 to player for 10 seconds
loop all living entities in radius 6 around player:
if loop-entity is not player:
set loop-entity's fire ticks to 100
strike lightning at loop-entity
play sound "entity.dragon_fireball.explode" at player
command /givecrowns:
permission: op
trigger:
give 1 golden helmet named "&e&lThunder Crown" to player
give 1 golden helmet named "&c&lFire Crown" to player
give 1 golden helmet named "&b&lSpeed Crown" to player
give 1 golden helmet named "&2&lPoison Crown" to player
give 1 golden helmet named "&8&lShadow Crown" to player
give 1 golden helmet named "&6&lUltimate Crown" to player
give 1 golden helmet named "&a&lCrown AIM" to player
give 1 golden helmet named "&4&lKirmada Crown" to player
send "&a[+] All 8 Crowns have been added to your inventory!" to player