scoreboard players set global victoryState 1
kill @e[type=armor_stand,tag=level_exit]

execute as @e[type=armor_stand,tag=mark_level_exit] at @s run function bd:levels/entities/spawn_level_exit

execute unless score global currentLevel matches 1 if entity @e[limit=1,type=armor_stand,tag=block_receptor] run playsound minecraft:entity.player.levelup master @a ~ ~10000 ~ 100000 1