
# -> If block is a top slab then return success
execute if block ~ ~ ~ #slabs[type=top] run \
    return 1

# -> If block is a top stair then return success
execute if block ~ ~ ~ #stairs[half=top] run \
    return 1

# -> If block is a top trapdoor then return success
execute if block ~ ~ ~ #trapdoors[half=top] run \
    return 1

# -> If block is undesirable then return failure
execute if block ~ ~ ~ #overly_realistic:placeable_top_block_undesirable run \
    return 0

# -> Return success
return 1
