execute in kiwi2:limitbreak_run_dimension run kill @e[type=!player,tag=!limitbreak_starting_mob,distance=..9999]
execute in kiwi2:limitbreak_hub_dimension run tp @a @e[type=armor_stand,tag=limitbreak_hub_spawnpoint,limit=1,sort=nearest]
execute as @a at @s run playsound minecraft:block.respawn_anchor.deplete master @s ~ ~ ~ 10000 0.3 1
title @a title {"text": "<< RUN FINISHED >>","bold": true,"color":"green"}
title @a subtitle [{"bold":true,"color":"#e3750f","text":"Points"},{"color": "white","text": " have been converted to "},{"color":"#76BDF8","text":"⌬ Credits"}]
function kiwi2:convert_points_to_credits_finish_run
# function kiwi2:run_dimension/limitbreak_platform_starter
execute if score world WaveCounter > world HighestWaveReached store result score world HighestWaveReached run scoreboard players get world WaveCounter
worldborder set 59999968
bossbar remove daytime
bossbar set boss_health visible false
gamerule doMobSpawning true
scoreboard players reset @a necromancer_count
scoreboard players set world Boss_Wave_Check 0
scoreboard players set world Boss_Death_Check 0
scoreboard players set world ongoing_run 0
scoreboard players set world Run_Active 0
scoreboard players set world NextWaveTimer 0
scoreboard players set world WaveCounter 0
scoreboard players set world RespawnCount 0
scoreboard players set world teleport_countdown 0
scoreboard players set @a necromancer_summon_count 0
scoreboard players set @a necromancer_current_souls 0
scoreboard players set world PointShopWaveCount 1
scoreboard players set world PointShopSpawned 0
scoreboard players set world FirstWaveOfIntermissionCheck 0
scoreboard players set world Border 0
scoreboard players reset @a necromancer_soul_reap
scoreboard players reset @a class_ability_scoreboard
scoreboard players reset @a MonkDamageDealt
scoreboard players reset @a magus_count
scoreboard players reset @a magus_apotheosis_timer
execute as @a[scores={limitbreak_chosen_class=5}] run function kiwi2:upgrades/classes/magus/magus_float_remove
tag @a remove limitbreak_dead_player
tag @a remove eternium_set_second_wind_activated
tag @a remove limitbreak_non_melee_class
tag @a remove magus_tier_2_unlocked
tag @a remove magus_tier_3_unlocked
tag @a remove magus_tier_4_unlocked
tag @a remove magus_unstable_check_tier_1
tag @a remove magus_unstable_check_tier_2
tag @a remove magus_unstable_check_tier_3
tag @a remove magus_unstable_check_tier_4
tag @a remove skill_window
tag @a remove flicker_strike_ready
tag @a remove flicker_striked
tag @a remove necromancer_max_armor
tag @a remove hunter_power_shot_active
tag @a remove hunter_quick_shot_active
tag @a remove purity_feather_holder
tag @a remove skill_chosen
tag @a remove limitbreak_revive
tag @a remove knight_resilient_enchant
tag @a remove magus_flashfreeze_ongoing
tag @a remove magus_flashfreeze_not_on_ground
bossbar remove mana_bar
bossbar remove mana_bar2
bossbar remove mana_bar3
bossbar remove mana_bar4
bossbar remove mana_bar5
bossbar remove mana_bar6
bossbar remove mana_bar7
bossbar remove mana_bar8
bossbar remove mana_bar9
bossbar remove mana_bar10
bossbar remove soul_bar
bossbar remove soul_bar2
bossbar remove soul_bar3
bossbar remove soul_bar4
bossbar remove soul_bar5
bossbar remove soul_bar6
bossbar remove soul_bar7
bossbar remove soul_bar8
bossbar remove soul_bar9
bossbar remove soul_bar10
clear @a
effect clear @a
xp set @a 0 levels
xp set @a 0 points
execute in kiwi2:limitbreak_run_dimension run setblock 0 0 0 air
execute as @a at @s run function kiwi2:points/remove_all_milestones
execute as @a at @s run function kiwi2:upgrades/classes/class_modifiers_remove
effect give @a saturation infinite 255 true
effect give @a regeneration infinite 255 true
gamemode survival @a