Oxolin

botMove.lua

Apr 17th, 2024
22
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. local function move(dir)
  2.     if dir == "forward" then
  3.             turtle.forward()
  4.     end
  5.     if dir == "right" then
  6.         turtle.turnRight()
  7.     end
  8.     if dir == "left" then
  9.         turtle.turnLeft()
  10.     end
  11.     if dir == "up" then
  12.         turtle.up()
  13.     end
  14.     if dir == "down" then
  15.         turtle.down()
  16.     end
  17.     if dir == "back" then
  18.         turtle.back()
  19.     end
  20. end
  21.  
  22. return { move = move }
Add Comment
Please, Sign In to add comment