Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- local state
- checksteps
- while true do
- steps()
- end
- function move()
- turtle.forward()
- end
- function right()
- turtle.turnRight()
- end
- function left()
- turtle.turnLeft()
- end
- function place(local dir)
- if dir == nil then
- turtle.place()
- end
- if dir == 1then
- turtle.placeUp()
- end
- if dir== 2 then
- turtle.placeDown()
- end
- end
- function dig(local dir)
- if dir == nil then
- turtle.dig()
- end
- if dir == 1 then
- turtle.digUp()
- end
- if dir ==2 then
- turtle.digDown()
- end
- end
- function select(local i)
- turtle.select(i)
- end
Advertisement
Add Comment
Please, Sign In to add comment