Advertisement
theinsekt

dcube2

Sep 7th, 2014
237
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Lua 0.87 KB | None | 0 0
  1. --pastebin get iD8UZqM5 theinsekt/dcube2
  2. --more experimental than dcube
  3. --uses poz3 and poz3a
  4. --digs out a cube area and then returns to the origin point
  5.  
  6. --get installer: pastebin run fjSV9kHj
  7. --install: installer installfile nhAsFAKV
  8.  
  9. os.loadAPI("theinsektAPIs/poz3")
  10. os.loadAPI("theinsektAPIs/poz3a")
  11. args={...}
  12. if #args==0 then
  13.  print("more experimental than dcube")
  14.  print("usage: dcube2 <dir1> <len1> <optional_dir2> <optional_len2> <optional_dir3> <optional_len3>")
  15.  print("example: dcube2 f 3 u 3 r 5")
  16.  print("Will dig out a 3x3x5 with the turtle starting in one of the corners and then return to the origin.")
  17.  print("example2: dcube2 f 3 u 3")
  18.  print("directions: u,d,n,s,w,e,f,b,r,l")
  19.  print("the directions have to be different")
  20.  return
  21. end
  22. print(poz3a.callDigCube(args[1],tonumber(args[2]),args[3],tonumber(args[4]),args[5],tonumber(args[6]),true,true))
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement