
# -> If block is not a player head then remove marker
execute unless block ~ ~ ~ #overly_realistic:is_player_head run \
    return run \
        kill @s

# -> Add to time
scoreboard players add @s OverlyRealistic.General.ArbitraryData 1

# -> If time is not maxxed then return
execute unless score @s OverlyRealistic.General.ArbitraryData matches 60.. run \
    return fail

# --> Set skull

# -> Wall head
execute if block ~ ~ ~ player_wall_head run \
    function overly_realistic:general/block_misc/player_head/skull_transform_wall_head

# -> Normal head
execute if block ~ ~ ~ player_head run \
    function overly_realistic:general/block_misc/player_head/skull_transform_head

# -> Remove marker
kill @s
