Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- local orientation = 0
- local axex = 0
- local axay = 0
- function forward()
- turtle.dig()
- turtle.forward()
- if orientation == 0 then
- axex = axex + 1
- elseif orientation == 1 then
- axey = axey + 1
- elseif orientation == 2 then
- axex = axex - 1
- elseif orientation == 3 then
- axey = axey - 1
- end
- turtle.digUp()
- end
- while axex ~= 10 do
- forward()
- end
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement