Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- function version()
- print("1.0.0.0")
- end
- function turn(direction,times)
- if direction == "right" then
- for i=1,times[1] do
- turtle.turnRight()
- end
- if direction == "left" then
- for i=1,times[1] then
- turtle.turnleft()
- end
- end
- end
- function move(direction,times)
- if direction == "forward" then
- for i=1,times[1] do
- turtle.forward()
- end
- if direction == "back" then
- for i=1,times[1] do
- turtle.back()
- end
- if direction == "right" then
- turtle.turnRight()
- for i=1,times[1] do
- turtle.forward()
- end
- turtle.turnLeft()
- end
- if direction == "left" then
- turtle.turnLeft()
- for i=1,times[1] do
- turtle.turnLeft()
- end
- turtle.turnRight()
- end
- end
- if direction == "up" then
- for i=1,times[1] do
- turtle.up()
- end
- end
- if direction == "down" then
- for i=1,times[1] do
- turtle.down()
- end
- end
- end
Add Comment
Please, Sign In to add comment