stopsound @a
tag @a remove music
tag @a remove tutorial_started
scoreboard players set .play music 0
scoreboard players set .length music 0
tellraw @a ["\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n"]
function main:settings/kill
schedule function main:load_1 5t
function main:menu/select/tp
schedule function healthbars:schedule 5t
schedule function main:mechanics/music/tick 2s
schedule function main:settings/holding/check/start 2s replace
function main:game/start/settings/start
function main:mechanics/interaction/weapon/coral_clear_schedule

scoreboard players reset .disclaimer hud

tag @a remove camera_spectate
tag @a remove tutorial_in_progress
tag @a[tag=!hit_sound_fast,tag=!hit_sound_off] add hit_sound_slow
tag @a add damage_number_setting

# schedule function main:settings/player_data/y_check 10t
# function main:mechanics/effects/tilt/particle {direction:"0.5"}
# function main:mechanics/effects/vignette/end
# function main:mechanics/effects/lines/end
# function main:mechanics/effects/zoom/end
# function main:mechanics/effects/screenshake/end
schedule function main:characters/schedule 5t
data remove storage dialog text
schedule clear main:dialog/text/text_schedule
title @a actionbar ""
data remove storage combo text
data modify storage combo text.text append value ""
data modify storage combo text.text append value ""
data modify storage combo text.text append value ""
data modify storage combo text.text append value ""
data modify storage combo text.text append value ""

#text
title @a times 0s 1s 0s

#settings
data remove storage player_data 1
data remove storage player_data 2
data remove storage player_data 3
data remove storage player_data 4
function main:settings/scoreboards/load
scoreboard players reset #NextID player_id
execute as @a run function main:settings/scoreboards/set
schedule function main:settings/stats/tick 10t
schedule function main:settings/stats/schedule 1t
schedule function main:settings/artifact 5t

schedule function main:settings/stats/shield/absorption_tick 2t
function main:settings/player_data/main {"id":1}
function main:settings/gamerule

clear @a

# execute as @a[tag=!tutorial_finished,tag=!second_load] run function main:shaders_problem

execute if entity @a[tag=!first_boot] run scoreboard players set .text_speed dialog 1
execute if entity @a[tag=!first_boot] run tag @a add first_boot

schedule function main:progression/schedule 1s