Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- package.path = package.path .. ";/capis/dturtle.lua"
- local dturtle = require "dturtle"
- local args = { ... }
- if #args < 1 then
- print("Program usage:")
- print("udig area <height> <width> <depth>")
- print("udig drowse <count> <size> <length>")
- else
- if args[1] == 'area' and #args < 3 then
- print("Dig area subprogram usage:")
- print("udig area <height> <width> <depth>")
- end
- end
- if args[1] == 'area' then
- height = tonumber(args[2])
- width = tonumber(args[3])
- depth = tonumber(args[4])
- dturtle.dig_area(height, width, depth)
- end
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement