StairsTop = 0 StairsBottom = 0 Levels = StairsTop - StairsBottom L = 0 print("So you Want to dig a tunnel?") print("You have come to the right place.") print("Please enter your starting level:") StairsTop = io.read() print("Please enter what level you would like to stop at:") StairsBottom = io.read() function Level if turtle.detectDown() = true then turtle.digDown() turtle.down() end if turtle.detect() = true then turle.dig() turtle.forward() end if turtle.detect() = true then turle.dig end L = L + 1 end function Fuel turtle.getFuelLevel() if turtle.getFuelLevel() <= 5 then turtle.select(1) turtle.refuel() end end Fuel() for Levels > L do Level() Fuel() end