CCCPaste
-- Fast block breaker
-- Place turtle facing the block to break

while true do
    -- Check for redstone signal from any side
    if rs.getInput("left") or rs.getInput("right") or rs.getInput("top") or rs.getInput("bottom") then
        -- Break and collect block in front
        if turtle.detect() then
            turtle.dig()
        end
        
        -- Wait for redstone signal to turn off to prevent multiple triggers
        while rs.getInput("left") or rs.getInput("right") or rs.getInput("top") or rs.getInput("bottom") do
            sleep(0.05)
        end
    end
    
    -- Small delay to reduce CPU usage
    sleep(0.05)
end