
execute if block ~ ~ ~ player_wall_head[facing=north] run \
    return run \
        setblock ~ ~ ~ skeleton_wall_skull[facing=north]

execute if block ~ ~ ~ player_wall_head[facing=south] run \
    return run \
        setblock ~ ~ ~ skeleton_wall_skull[facing=south]

execute if block ~ ~ ~ player_wall_head[facing=east] run \
    return run \
        setblock ~ ~ ~ skeleton_wall_skull[facing=east]

execute if block ~ ~ ~ player_wall_head[facing=west] run \
    return run \
        setblock ~ ~ ~ skeleton_wall_skull[facing=west]
