-- This program digs a mining stairs with a five levels down per filght of stairs -- Pastebin code = "TaFFELNp"; Pastebin name is "MDC_Upper_Hall_Cut_Place" -- This program assumes that you place the turtle down on the forward end of the upper pad (a 2 stone x 2 stone) -- Place coal into Turtle slot #1 to assure adequate fueling -- Place stone into Turtle slot #2 and #3 to assure adequate placement resources -- This program begins by asking you to indicate whether you want to cut an upper hall (H response) or stairs (S response) if turtle.getFuellevel() < 200 then print( "Your fuel level is less than 200; refueling with 240." ) refuel 3 end local function tryDig() -- This function digs forward one block while turtle.detect() do if turtle.dig() then sleep(0.1) else return false end end return true end print( "Enter either S or H for Stairs or Hallway mining") local tArgs = { ... } -- Obtain indicator of either H: Hallway cutting or S: Stairway cuttaing if tArgs ~= ( "S" or "H") then print( "You must respond with either a H for Hallway cutting or a S for Stairway cutting." ) elseif local cut_type = tArgs([1]) return end local disired_length = 5 + 2 if not turtle.detect() then turtle.forward() else turtle.dig(); turtle.turnRight(); turtle.forward() end print( "The program has ended sucessfully." )