Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- local function move(dir)
- if dir == "move" then
- turtle.forward()
- end
- if dir == "right" then
- turtle.turnRight()
- turtle.forward()
- end
- if dir == "left" then
- turtle.turnLeft()
- turtle.forward()
- end
- if dir == "up" then
- turtle.up()
- end
- if dir == "down" then
- turtle.down()
- end
- end
- return { move = move }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement