Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- --pastebin get iD8UZqM5 theinsekt/dcube2
- --more experimental than dcube
- --uses poz3 and poz3a
- --digs out a cube area and then returns to the origin point
- --get installer: pastebin run fjSV9kHj
- --install: installer installfile nhAsFAKV
- os.loadAPI("theinsektAPIs/poz3")
- os.loadAPI("theinsektAPIs/poz3a")
- args={...}
- if #args==0 then
- print("more experimental than dcube")
- print("usage: dcube2 <dir1> <len1> <optional_dir2> <optional_len2> <optional_dir3> <optional_len3>")
- print("example: dcube2 f 3 u 3 r 5")
- print("Will dig out a 3x3x5 with the turtle starting in one of the corners and then return to the origin.")
- print("example2: dcube2 f 3 u 3")
- print("directions: u,d,n,s,w,e,f,b,r,l")
- print("the directions have to be different")
- return
- end
- 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