-- Shaft -- V2.3 -- By Master Hellish -- https://www.youtube.com/c/MasterHellish -- This vershion whislt working is not yet finished -- Creates a 1 wide shaft and mines out all the ores in the walsl on both sides. -- Refuling. Full Handling. Lenth and hight configurable local shaftLenth = 60 local maxLevle = 60 -- Intro term.clear() term.setCursorPos(7,1) term.write("*** Crapple Shaft V1.0 ****") term.setCursorPos(1,3) term.write("Place your turlte at lvl 5") term.setCursorPos(1,4) term.write("Place lots of fule in slot 1") term.setCursorPos(1,5) term.write("Place a chest behind the turtle") term.setCursorPos(1,7) term.write("Press enter to confirm and start...") ready = read() term.clear() -- Main Loop for x = 1, shaftLenth do fuel = turtle.getFuelLevel() while fuel < 250 do print("Fuel low, refueling.") turtle.refuel(1) fuel = turtle.getFuelLevel() end turtle.turnLeft() for y = 5, maxLevle do suc, data = turtle.inspect() if suc then if data.name == "minecraft:stone" then else turtle.dig() end end while not turtle.up() do turtle.digUp() end end suc, data = turtle.inspect() if suc then if data.name == "minecraft:stone" then else turtle.dig() end end turtle.turnRight() turtle.turnRight() for y = 5, maxLevle do suc, data = turtle.inspect() if suc then if data.name == "minecraft:stone" then else turtle.dig() end end while not turtle.down() do turtle.digDown() end end suc, data = turtle.inspect() if suc then if data.name == "minecraft:stone" then else turtle.dig() end end turtle.turnLeft() while not turtle.forward() do turtle.dig() sleep(0.1) end suc, data = turtle.inspectDown() if suc then if data.name == "minecraft:stone" then else turtle.digDown() end end if turtle.getItemCount(13) > 0 then print("Getting full, going back to empty.") turtle.turnRight() turtle.turnRight() for z = 1, x do while not turtle.forward() do turtle.dig() sleep(0.1) end end print("Emptying items.") for a = 2, 16 do turtle.select(a) turtle.drop() end turtle.select(1) turtle.turnRight() turtle.turnRight() for z = 1, x do while not turtle.forward() do turtle.dig() sleep(0.1) end end end print("Gone forward "..x.." meters") end print("Finished shafting, heading back") turtle.turnRight() turtle.turnRight() for r = 1, 60 do while not turtle.forward() do turtle.dig() sleep(0.1) end end print("Eptying last load.") for a = 1, 16 do turtle.select(a) turtle.drop() end print("Program end") print("Thank you for using Hellish Shaft, happy shafting!")