def mine_if_solid(direction):
    is_solid = robot.is_block_solid(direction)
    if is_solid:
        robot.mine(direction)
Mines the block only if it's a solid block (won't mine torches away).
dataset/ETHPy150Open katharosada/botchallenge/client/examples/mine_a_tunnel.py/mine_if_solid