Advertisement
theinsekt

dcube

Sep 4th, 2014
357
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Lua 0.55 KB | None | 0 0
  1. os.loadAPI("theinsektAPIs/poz2")
  2. os.loadAPI("theinsektAPIs/poz2a")
  3. args={...}
  4. if #args==0 then
  5.  print("usage: dcube <dir1> <len1> <optional_dir2> <optional_len2> <optional_dir3> <optional_len3>")
  6.  print("example: dcube f 3 u 3 r 5")
  7.  print("Will dig out a 3x3x5 with the turtle starting in one of the corners.")
  8.  print("directions: u,d,n,s,w,e,f,b,r,l")
  9.  print("the directions have to be different")
  10.  return
  11. end
  12. local posT=poz2.getNewPosT()
  13. print(poz2a.digCube2(args[1],tonumber(args[2]),args[3],tonumber(args[4]),args[5],tonumber(args[6]),posT,true,true))
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement