## REMOVE ALL CUSTOM ENTITIES
event entity @e[family=ldz] despawn

## RESET JAIL CELLS
structure load cell_reset 95 167 54

## RESET HIDDEN CHESTS
structure load upper_hidden_chest 104 170 36
structure load lower_hidden_chest 104 161 67
structure load back_left_chest 114 174 55

## SETUP LEVITATION TUBE
function levitation_tube/set_up

## SETUP POSTERS
summon ldz:poster_credits 100 163.75 31 0 0 east
summon ldz:poster_support 108 164 31 0 0 west

## INITIALIZE SCOREBOARDS
scoreboard objectives remove ChargerMorph
scoreboard objectives remove ChefMorph
scoreboard objectives remove GardenerMorph
scoreboard objectives remove HydroMorph

scoreboard objectives remove CurrentForce
scoreboard objectives remove DisplayCurrForce
scoreboard objectives remove DelayDisplay
scoreboard objectives remove EscapedIsland
scoreboard objectives add CurrentForce dummy
scoreboard objectives add DisplayCurrForce dummy
scoreboard objectives add DelayDisplay dummy
scoreboard players add @a CurrentForce 0
scoreboard players add @a DisplayCurrForce 0
scoreboard players add @s DelayDisplay 0
scoreboard objectives add SkylightsTimer dummy
scoreboard players set .lord_spawned EnderLordSpawn 0


function admin/add_tickingareas
function admin/spawn_and_tp_dungeon_levers
function admin/spawn_and_tp_ender_prisoners
# function admin/spawn_and_tp_ender_prisoners_no_dialogue
function admin/spawn_and_tp_help_bubbles
function admin/spawn_and_tp_magic_barriers
function admin/spawn_and_tp_teleport_pads
function admin/spawn_and_tp_fares_portal_intro
function admin/gamerules

time set 0

## RESET PLAYERS
execute as @a run function admin/reset_player

## SET WORLD SPAWN
setworldspawn 96 168 55

## START TUTORIAL
function tutorial/start