event entity @e[type=ldz:tutorial_ender_lord] despawn
event entity @e[type=ldz:fares_portal] despawn
event entity @e[type=ldz:fares_portal_dummy] despawn

execute if entity @p[tag=dev] run say Setting up the tutorial
event entity @a set_tutorial_stage_to_1
scoreboard objectives add TutorialStage dummy
scoreboard players set @a TutorialStage 1
scoreboard players set .current TutorialStage 1

function admin/spawn_and_tp_fares_portal_intro
tp @a 97.0 168 56 0
spawnpoint @a 97 168 56
summon ldz:tutorial_ender_lord 104 167 58 90 0

gamerule keepinventory true