Advertisement
theinsekt

excavating

Sep 3rd, 2014
349
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Lua 1.12 KB | None | 0 0
  1. --theinsekt/excavating
  2. os.loadAPI("theinsektAPIs/poz2")
  3. os.loadAPI("theinsektAPIs/poz2a")
  4. function downandup(depth)
  5.         local posT=poz2.getNewPosT()
  6.     depth=poz2.doLoop(depth,poz2.detectDigGo,"d",posT,nil)
  7.         print(depth)
  8.         local depth2=poz2.doLoop(depth,poz2.detectDigGo,"u",posT,nil)
  9.         print(depth==depth2)
  10. end
  11.  
  12.  
  13. --downandup(200)
  14. args={...}
  15. --local x = tonumber(args[1])
  16. --local y = tonumber(args[2])
  17. --local z = tonumber(args[3])
  18. local posT=poz2.getNewPosT()
  19. --poz2a.digToCoords(x,y,z,posT)
  20.  
  21. --poz2a.digShape({{"n",3},{"e",3},{"s",3},{"w",3},{"n",0}},true,posT,true)
  22. --print(poz2a.mineUHole("d", 150, "n",1,posT,true,7))
  23. --print(poz2a.mine4by4("d",150,"n","e",posT,true,0))
  24. --poz2a.doRefuel(2)
  25. --poz2a.miningProgram1(150,1,1,1,posT)
  26. --print(poz2a.digPlane("f",3,"r",3,posT,true))
  27. --print(poz2a.digPlane(args[1],tonumber(args[2]),args[3],tonumber(args[4]),posT,true))
  28.  
  29. --print(poz2a.digCube(args[1],tonumber(args[2]),args[3],tonumber(args[4]),args[5],tonumber(args[6]),posT,true))
  30. print(poz2a.digCube2(args[1],tonumber(args[2]),args[3],tonumber(args[4]),args[5],tonumber(args[6]),posT,true))
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement