JZTech101

Untitled

Dec 22nd, 2013
180
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.20 KB | None | 0 0
  1. local args = shell.parse(...)
  2. local direction = args [1]
  3. local amount = tonumber(args[2])
  4. function motor (n,m)
  5. g=component.carriage
  6. for i=0, m, 1 do
  7. g.move(n)
  8. end
  9. end
  10. motor(direction, amount)
Advertisement
Add Comment
Please, Sign In to add comment