Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- write("Width: ")
- width = tonumber(read())
- write("Length: ")
- length = tonumber(read())
- write("Height: ")
- height = tonumber(read())
- orientation = "north"
- print("Digging in a "..width.."x"..length.."x"..height.." area")
- digRight()
- function digRight()
- if orientation == "north" then
- turtle.dig()
- turtle.forward()
- turtle.turnRight()
- end
- elseif orientation == "south" then
- turtle.turnLeft()
- turtle.turnLeft()
- turtle.dig()
- turtle.turnRight()
- turtle.turnRight()
- end
- elseif orientation == "west" then
- turtle.turnRight()
- turtle.dig()
- turtle.forward()
- turtle.turnRight()
- end
- --for i = 1,width,1 do
- --turtle.dig()
- --turtle.forward()
- --end
- end
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement