Advertisement
massacring

Turn

Jul 20th, 2024
74
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Lua 0.22 KB | None | 0 0
  1. local direction = arg[1]
  2. local amount = tonumber(arg[2]) or 1
  3.  
  4. if direction == "right" or direction == "r" then
  5.     for _ = 1, amount, 1 do turtle.turnRight() end
  6. else
  7.     for _ = 1, amount, 1 do turtle.turnLeft() end
  8. end
  9.  
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement