Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- --theinsekt/excavating
- os.loadAPI("theinsektAPIs/poz2")
- os.loadAPI("theinsektAPIs/poz2a")
- function downandup(depth)
- local posT=poz2.getNewPosT()
- depth=poz2.doLoop(depth,poz2.detectDigGo,"d",posT,nil)
- print(depth)
- local depth2=poz2.doLoop(depth,poz2.detectDigGo,"u",posT,nil)
- print(depth==depth2)
- end
- --downandup(200)
- args={...}
- --local x = tonumber(args[1])
- --local y = tonumber(args[2])
- --local z = tonumber(args[3])
- local posT=poz2.getNewPosT()
- --poz2a.digToCoords(x,y,z,posT)
- --poz2a.digShape({{"n",3},{"e",3},{"s",3},{"w",3},{"n",0}},true,posT,true)
- --print(poz2a.mineUHole("d", 150, "n",1,posT,true,7))
- --print(poz2a.mine4by4("d",150,"n","e",posT,true,0))
- --poz2a.doRefuel(2)
- --poz2a.miningProgram1(150,1,1,1,posT)
- --print(poz2a.digPlane("f",3,"r",3,posT,true))
- --print(poz2a.digPlane(args[1],tonumber(args[2]),args[3],tonumber(args[4]),posT,true))
- --print(poz2a.digCube(args[1],tonumber(args[2]),args[3],tonumber(args[4]),args[5],tonumber(args[6]),posT,true))
- 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