Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- --VERSION: 1
- --PASTEBIN: AW9g4CPK
- --FUNC--
- fwd = function(dist)
- for i = 1, dist, 1 do
- repeat
- turtle.dig()
- until turtle.forward()
- end
- end
- rgh = function(rot)
- for i = 1, rot, 1 do
- turtle.turnRight()
- end
- end
- lft = function(rot)
- for i = 1, rot, 1 do
- turtle.turnLeft()
- end
- end
- bck = function(dist)
- for i = 1, dist, 1 do
- if not turtle.back() then
- rgh(2)
- fwd(1)
- rgh(2)
- end
- end
- end
- upw = function(dist)
- for i = 1, dist, 1 do
- repeat
- turtle.digUp()
- until turtle.up()
- end
- end
- dwn = function(dist)
- for i = 1, dist, 1 do
- repeat
- turtle.digDown()
- until turtle.down()
- end
- end
Add Comment
Please, Sign In to add comment