Advertisement
theinsekt

test2

Feb 21st, 2013
52
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Lua 0.39 KB | None | 0 0
  1. args={...}
  2. os.loadAPI("theinsekt/turtle2")
  3. os.loadAPI("theinsekt/mine3")
  4.  
  5. local length=tonumber(args[1])
  6. local width=tonumber(args[2])
  7. local iters=tonumber(args[3])
  8.  
  9. if #args==1 then
  10.   print(mine3.tunnel3(length))
  11. elseif #args==2 then
  12.   print(mine3.horzU(length,width))
  13. elseif #args==3 then
  14.   print(mine3.stripMine(length,width,iters))
  15. else
  16.   print("Wrong number of arguments")
  17. end
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement