Files
bosses.sk
char-geto.sk
char-gojo.sk
char-megumi.sk
char-sukuna.sk
char-yuta.sk
combat-blackflash.sk
config.sk
core-data.sk
core-energy.sk
pvp-ranked.sk
quests.sk
README.txt
spirits-core.sk
ui-display.sk
Code
15 2,713
bosses.sk
options:
prefix: &d&l[JJK]&r
command /jjkboss [<text>]:
permission: jjk.admin
trigger:
if arg-1 is not set:
send "{@prefix} &c/jjkboss <jogo|mahito|hanami|sukuna>" to player
else if arg-1 is "jogo":
jjkSpawnJogo(player)
else if arg-1 is "mahito":
jjkSpawnMahito(player)
else if arg-1 is "hanami":
jjkSpawnHanami(player)
else if arg-1 is "sukuna":
jjkSpawnSukunaBoss(player)
function jjkSpawnJogo(p: player):
set {_loc} to location 10 meters in front of {_p}
broadcast "{@prefix} &c&l━━━━━━━━━━━━━━━━━━━━━━━━━"
broadcast "{@prefix} &6&lSPECIAL GRADE THREAT DETECTED"
broadcast "{@prefix} &c&lJOGO - THE VOLCANO CURSE"
broadcast "{@prefix} &c&l━━━━━━━━━━━━━━━━━━━━━━━━━"
play sound "entity.ender_dragon.growl" with volume 1 and pitch 0.3 to all players
loop 20 times:
make {_p} execute command "/particle minecraft:lava %x-coordinate of {_loc}% %y-coordinate of {_loc}% %z-coordinate of {_loc}% 3 2 3 1 50"
make {_p} execute command "/particle minecraft:flame %x-coordinate of {_loc}% %y-coordinate of {_loc}% %z-coordinate of {_loc}% 2 2 2 0.2 30"
wait 2 ticks
spawn 1 blaze at {_loc}
set {_jogo} to last spawned entity
set display name of {_jogo} to "&c&l&nJOGO"
set max health of {_jogo} to 500
set health of {_jogo} to 500
set AI of {_jogo} to true
apply glowing to {_jogo} for 999 days
set {jjk.boss.jogo} to {_jogo}
jjkJogoBehavior({_jogo})
function jjkJogoBehavior(jogo: entity):
while {_jogo} is alive:
wait 3 seconds
if {_jogo} is not alive:
stop
set {_health} to health of {_jogo}
set {_maxHealth} to maximum health of {_jogo}
set {_percent} to ({_health} / {_maxHealth}) * 100
set {_target} to target entity of {_jogo}
if {_target} is set:
if random integer between 1 and 3 is 1:
jjkJogoFireball({_jogo}, {_target})
if {_percent} < 50:
if random integer between 1 and 5 is 1:
jjkJogoMeteor({_jogo})
if {_percent} < 30:
if {jjk.boss.jogo.domain} is not true:
jjkJogoDomain({_jogo})
function jjkJogoFireball(jogo: entity, target: entity):
play sound "entity.blaze.shoot" with volume 1 and pitch 0.7 at {_jogo}
set {_start} to location of {_jogo}
set {_end} to location of {_target}
set {_dir} to direction from {_start} to {_end}
loop 20 times:
set {_loc} to {_start}
set x-coordinate of {_loc} to x-coordinate of {_loc} + (loop-number * vector x of {_dir})
set y-coordinate of {_loc} to y-coordinate of {_loc} + (loop-number * vector y of {_dir}) + 1.5
set z-coordinate of {_loc} to z-coordinate of {_loc} + (loop-number * vector z of {_dir})
make {_jogo} execute command "/particle minecraft:flame %x-coordinate of {_loc}% %y-coordinate of {_loc}% %z-coordinate of {_loc}% 0.5 0.5 0.5 0.05 10"
make {_jogo} execute command "/particle minecraft:lava %x-coordinate of {_loc}% %y-coordinate of {_loc}% %z-coordinate of {_loc}% 0.2 0.2 0.2 0 2"
loop all entities in radius 2 of {_loc}:
if loop-entity is not {_jogo}:
if loop-entity is a player:
damage loop-entity by 12
ignite loop-entity for 5 seconds
wait 1 tick
function jjkJogoMeteor(jogo: entity):
broadcast "{@prefix} &c&lJOGO: &6METEOR STORM!"
play sound "entity.wither.shoot" with volume 1 and pitch 0.5 to all players
set {_center} to location of {_jogo}
loop 10 times:
set {_radius} to 15
set {_x} to x-coordinate of {_center} + (random integer between (0 - {_radius}) and {_radius})
set {_y} to y-coordinate of {_center} + 30
set {_z} to z-coordinate of {_center} + (random integer between (0 - {_radius}) and {_radius})
set {_meteorLoc} to location({_x}, {_y}, {_z}, world of {_jogo})
loop 30 times:
remove 1 from y-coordinate of {_meteorLoc}
make {_jogo} execute command "/particle minecraft:lava %x-coordinate of {_meteorLoc}% %y-coordinate of {_meteorLoc}% %z-coordinate of {_meteorLoc}% 1 1 1 0 10"
make {_jogo} execute command "/particle minecraft:flame %x-coordinate of {_meteorLoc}% %y-coordinate of {_meteorLoc}% %z-coordinate of {_meteorLoc}% 0.5 0.5 0.5 0.1 5"
wait 1 tick
create safe explosion of force 3 at {_meteorLoc}
loop all entities in radius 4 of {_meteorLoc}:
if loop-entity is not {_jogo}:
if loop-entity is a player:
damage loop-entity by 20
ignite loop-entity for 10 seconds
set block at {_meteorLoc} to fire
wait 10 ticks
function jjkJogoDomain(jogo: entity):
set {jjk.boss.jogo.domain} to true
broadcast "{@prefix} &c&l&nDOMAIN EXPANSION: COFFIN OF THE IRON MOUNTAIN"
play sound "entity.wither.spawn" with volume 1 and pitch 0.3 to all players
set {_center} to location of {_jogo}
loop 15 times:
make {_jogo} execute command "/particle minecraft:lava %x-coordinate of {_center}% %y-coordinate of {_center}% %z-coordinate of {_center}% 12 8 12 1 200"
make {_jogo} execute command "/particle minecraft:dust 1 0.3 0 2 %x-coordinate of {_center}% %y-coordinate of {_center}% %z-coordinate of {_center}% 10 6 10 1 150"
loop all players in radius 15 of {_center}:
damage loop-value by 8
ignite loop-value for 5 seconds
apply slowness 2 to loop-value for 3 seconds
wait 1 second
on death of blaze:
if {jjk.boss.jogo} is victim:
broadcast "{@prefix} &6&l━━━━━━━━━━━━━━━━━━━━"
broadcast "{@prefix} &c&lJOGO HAS BEEN EXORCISED!"
broadcast "{@prefix} &6&l━━━━━━━━━━━━━━━━━━━━"
play sound "ui.toast.challenge_complete" with volume 1 and pitch 0.5 to all players
set {_loc} to location of victim
make victim execute command "/particle minecraft:explosion_emitter %x-coordinate of {_loc}% %y-coordinate of {_loc}% %z-coordinate of {_loc}% 3 3 3 0 20"
if attacker is a player:
jjkAddExp(attacker, 1000)
send "{@prefix} &6+1000 EXP &7(Boss Kill)" to attacker
drop 5 diamonds named "&5Cursed Energy Shard" at {_loc}
drop 1 blaze rod named "&cJogo's Volcanic Core" at {_loc}
delete {jjk.boss.jogo}
delete {jjk.boss.jogo.domain}
function jjkSpawnMahito(p: player):
set {_loc} to location 10 meters in front of {_p}
broadcast "{@prefix} &5&l━━━━━━━━━━━━━━━━━━━━━━━━━"
broadcast "{@prefix} &d&lSPECIAL GRADE THREAT DETECTED"
broadcast "{@prefix} &5&lMAHITO - THE SOUL MANIPULATOR"
broadcast "{@prefix} &5&l━━━━━━━━━━━━━━━━━━━━━━━━━"
play sound "entity.evoker.cast_spell" with volume 1 and pitch 0.3 to all players
loop 15 times:
make {_p} execute command "/particle minecraft:soul %x-coordinate of {_loc}% %y-coordinate of {_loc}% %z-coordinate of {_loc}% 2 2 2 0.2 30"
make {_p} execute command "/particle minecraft:dust 0.3 0 0.5 1.5 %x-coordinate of {_loc}% %y-coordinate of {_loc}% %z-coordinate of {_loc}% 1.5 1 1.5 0 20"
wait 2 ticks
spawn 1 zombie at {_loc}
set {_mahito} to last spawned entity
set display name of {_mahito} to "&5&l&nMAHITO"
set max health of {_mahito} to 450
set health of {_mahito} to 450
apply glowing to {_mahito} for 999 days
set AI of {_mahito} to true
set {jjk.boss.mahito} to {_mahito}
jjkMahitoBehavior({_mahito})
function jjkMahitoBehavior(mahito: entity):
while {_mahito} is alive:
wait 4 seconds
if {_mahito} is not alive:
stop
set {_health} to health of {_mahito}
set {_maxHealth} to maximum health of {_mahito}
set {_percent} to ({_health} / {_maxHealth}) * 100
make {_mahito} execute command "/particle minecraft:soul %x-coordinate of {_mahito}% %y-coordinate of {_mahito} + 1% %z-coordinate of {_mahito}% 0.5 1 0.5 0.1 10"
set {_target} to target entity of {_mahito}
if {_target} is set:
if {_target} is a player:
if distance between {_mahito} and {_target} < 4:
if random integer between 1 and 3 is 1:
jjkMahitoSoulCorpse({_mahito}, {_target})
if random integer between 1 and 4 is 1:
jjkMahitoIdeaOfEvil({_mahito}, {_target})
if {_percent} < 40:
if {jjk.boss.mahito.domain} is not true:
jjkMahitoDomain({_mahito})
function jjkMahitoSoulCorpse(mahito: entity, target: entity):
send "{@prefix} &5&lMAHITO: &dSoul Distortion!" to all players
play sound "entity.evoker.prepare_summon" with volume 1 and pitch 0.5 at {_mahito}
make {_mahito} execute command "/particle minecraft:soul_fire_flame %x-coordinate of {_target}% %y-coordinate of {_target}% %z-coordinate of {_target}% 1 1 1 0.2 30"
damage {_target} by 18
apply wither 2 to {_target} for 6 seconds
apply slowness 3 to {_target} for 4 seconds
if {_target} is a player:
send "{@prefix} &5Your soul is being reshaped..." to {_target}
loop all entities in radius 6 of {_mahito}:
if loop-entity is not {_mahito}:
if loop-entity is not {_target}:
if loop-entity is a living entity:
if loop-entity is not a player:
damage loop-entity by 999
spawn 1 zombie at location of loop-entity
set display name of last spawned entity to "&5Soul Corpse"
set max health of last spawned entity to 20
set health of last spawned entity to 20
play sound "entity.evoker.cast_spell" with volume 0.5 and pitch 1.5 at loop-entity
function jjkMahitoIdeaOfEvil(mahito: entity, target: entity):
play sound "entity.wither.ambient" with volume 1 and pitch 0.8 at {_mahito}
set {_start} to location of {_mahito}
set {_end} to location of {_target}
set {_dir} to direction from {_start} to {_end}
loop 15 times:
set {_loc} to {_start}