$scoreboard players set .test checkpoint $(checkpoint)
$execute if score @s checkpoint < .test checkpoint run spawnpoint @s $(x) $(y) $(z) $(yaw)
$execute if score @s checkpoint < .test checkpoint run tellraw @a [{"selector":"@s","color":"dark_purple"},{"text":" hat den ","color":"gray"},{"text":"$(checkpoint)","color":"gold"},{"text":".","color":"gold"},{"text":" Checkpoint","color":"white"},{"text":" erreicht!","color":"gray"}]
tellraw @s [{"text":"Du bist in diesem Level ","color":"gray","italic":true},{"score":{"name":"@s","objective":"death.last_check"},"color":"gold"},{"text":" Mal gestorben","color":"gray"}]
scoreboard players set @s death.last_check 0
execute if score @s checkpoint < .test checkpoint at @s run playsound minecraft:entity.player.levelup master @a ~ ~ ~ .5 1.6
execute if score @s checkpoint < .test checkpoint run scoreboard players operation @s checkpoint = .test checkpoint
tag @s remove noob_mode
trigger noob_mode add 0
function system:give_book
tag @s remove check_active
tag @s remove check