Advertisement
theinsekt

m

Feb 21st, 2013
55
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Lua 0.32 KB | None | 0 0
  1. args={...}
  2. os.loadAPI("theinsekt/mine2")
  3. os.loadAPI("theinsekt/turtle2")
  4. -- check that it's the correct number of
  5. -- arguments
  6. if #args~=2 then
  7.   print("Usage: m <direction> <length>")
  8.   return
  9. end --if
  10.  
  11. local dir=args[1]
  12. local length=tonumber(args[2])
  13. function m(dir, length)
  14.   return mine2.digLoop(dir, length)
  15. end
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement