Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- function go_to(rel_x,rel_y)
- if rel_y > 0 then
- turtle.turnRight()
- turtle.turnRight()
- end
- for i=1,abs(rel_x),1
- do
- turtle.dig()
- turtle.forward()
- end
- if rel_y > 0 then
- turtle.turnRight()
- turtle.turnRight()
- end
- if rel_x > 0 then
- turtle.turnRight()
- else
- turtle.turnLeft()
- end
- for i=1,abs(rel_x),1
- do
- turtle.dig()
- turtle.forward()
- end
- end
- go_to(5,5)
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement