advancement grant @s only dozeoff_advancements:root

execute if block 48 88 4 redstone_block run advancement grant @s only dozeoff_advancements:dozeoff_tutorial_complete
execute if block 49 88 0 redstone_block run advancement grant @s only dozeoff_advancements:dozeoff_complete
execute if block 52 88 0 redstone_block run advancement grant @s only dozeoff_advancements:fingermaps_complete
execute if block 53 88 4 redstone_block run advancement grant @s only dozeoff_advancements:dozeoff_challenge_complete

execute if score #tutorial bestMoves matches 0..430 run advancement grant @s only dozeoff_advancements:dozeoff_tutorial_s_rank
execute if score #dozeoff bestMoves matches 0..4350 run advancement grant @s only dozeoff_advancements:dozeoff_s_rank
execute if score #fingermaps bestMoves matches 0..4750 run advancement grant @s only dozeoff_advancements:fingermaps_s_rank
execute if score #challenge bestMoves matches 0..6250 run advancement grant @s only dozeoff_advancements:dozeoff_challenge_s_rank

execute if score #tutorial bestMoves matches 0..430 if score #dozeoff bestMoves matches 0..4350 if score #fingermaps bestMoves matches 0..4750 if score #challenge bestMoves matches 0..6250 run advancement grant @s only dozeoff_advancements:dozeoff_all_s_ranks