title @a times 20 100 20
execute store result score world StartingTitles run random value 1..10
execute if score world StartingTitles matches 1 run title @a title {"text":"","extra":[{"text":"> ","bold":true,"color":"#9e0d0d"},{"text":"BOSS SLAIN","bold":true,"color":"#c02020"},{"text":" <","bold":true,"color":"#9e0d0d"}]}
execute if score world StartingTitles matches 2 run title @a title {"text":"","extra":[{"text":"> ","bold":true,"color":"#9e0d0d"},{"text":"GREAT ONE CULLED","bold":true,"color":"#c02020"},{"text":" <","bold":true,"color":"#9e0d0d"}]}
execute if score world StartingTitles matches 3 run title @a title {"text":"","extra":[{"text":"> ","bold":true,"color":"#9e0d0d"},{"text":"DEITY BANISHED","bold":true,"color":"#c02020"},{"text":" <","bold":true,"color":"#9e0d0d"}]}
execute if score world StartingTitles matches 4 run title @a title {"text":"","extra":[{"text":"> ","bold":true,"color":"#9e0d0d"},{"text":"DARKNESS PIERCED","bold":true,"color":"#c02020"},{"text":" <","bold":true,"color":"#9e0d0d"}]}
execute if score world StartingTitles matches 5 run title @a title {"text":"","extra":[{"text":"> ","bold":true,"color":"#9e0d0d"},{"text":"NIGHTMARE CRUSHED","bold":true,"color":"#c02020"},{"text":" <","bold":true,"color":"#9e0d0d"}]}
execute if score world StartingTitles matches 6 run title @a title {"text":"","extra":[{"text":"> ","bold":true,"color":"#9e0d0d"},{"text":"DEMON DESTROYED","bold":true,"color":"#c02020"},{"text":" <","bold":true,"color":"#9e0d0d"}]}
execute if score world StartingTitles matches 7 run title @a title {"text":"","extra":[{"text":"> ","bold":true,"color":"#9e0d0d"},{"text":"FATE DEFIED","bold":true,"color":"#c02020"},{"text":" <","bold":true,"color":"#9e0d0d"}]}
execute if score world StartingTitles matches 8 run title @a title {"text":"","extra":[{"text":"> ","bold":true,"color":"#9e0d0d"},{"text":"TYRANT SLAIN","bold":true,"color":"#c02020"},{"text":" <","bold":true,"color":"#9e0d0d"}]}
execute if score world StartingTitles matches 9 run title @a title {"text":"","extra":[{"text":"> ","bold":true,"color":"#9e0d0d"},{"text":"OBLIVION DENIED","bold":true,"color":"#c02020"},{"text":" <","bold":true,"color":"#9e0d0d"}]}
execute if score world StartingTitles matches 10 run title @a title {"text":"","extra":[{"text":"> ","bold":true,"color":"#9e0d0d"},{"text":"THE DARK STAR FALLS","bold":true,"color":"#c02020"},{"text":" <","bold":true,"color":"#9e0d0d"}]}
execute store result score world StartingTitles run random value 1..2
execute if score world StartingTitles matches 1 run title @a subtitle {"bold":true,"color":"#dce617","text":"|| You may rest here ||"}
execute if score world StartingTitles matches 2 run title @a subtitle {"bold":true,"color":"#dce617","text":"|| Intermission period started ||"}
execute as @a at @s run function kiwi2:run_dimension/revive_all_players
execute in kiwi2:limitbreak_run_dimension unless score world WaveCounter matches 100.. run summon skeleton 0 2 0 {NoAI:1b,Health:1f,Passengers:[{id:"minecraft:text_display",billboard:"vertical",alignment:"center",Tags:["controller_mob","limitbreak_continue_mob"],transformation:{left_rotation:[0f,0f,0f,1f],right_rotation:[0f,0f,0f,1f],translation:[0f,0.5f,0f],scale:[1f,1f,1f]},text:'{"bold":true,"color":"green","text":"[[ CONTINUE? ]]"}'}],ArmorItems:[{},{},{},{id:"minecraft:player_head",count:1,components:{"minecraft:profile":{properties:[{name:"textures",value:"eyJ0ZXh0dXJlcyI6eyJTS0lOIjp7InVybCI6Imh0dHA6Ly90ZXh0dXJlcy5taW5lY3JhZnQubmV0L3RleHR1cmUvNDcxYmMyNzI0NjYwYTQ5MTkzN2JiNzZlMDFlZGMzZGJiYjA1ZTEwNGJmNzZkZTIxM2QyYmE4N2RmYjBkMDRkIn19fQ=="}]}}}],active_effects:[{id:"minecraft:invisibility",amplifier:1,duration:1999980,show_particles:0b}],attributes:[{id:"minecraft:max_health",base:1}],Silent:1b,DeathLootTable:"",Tags:["limitbreak_continue_mob","knight_no_taunt","border_no_tp"],DeathTime:20s,Silent:1b}
scoreboard players set world InIntermission 1
scoreboard players add world WaveCounter 1
scoreboard players add world RespawnCount 1
scoreboard players set world NextWaveTimer 0
scoreboard players set world FirstWaveOfIntermissionCheck 0
function kiwi:enchantment_shrines/shrine_roll_spawn
function kiwi:enchantment_shrines/shrine_roll_spawn
function kiwi:enchantment_shrines/shrine_roll_spawn
function kiwi2:upgrades/world_upgrades/world_upgrades_main
bossbar set daytime max 200