Advertisement
PetrAxeman

cc: tweaked - petr_axeman - udig

Apr 18th, 2024 (edited)
530
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Lua 0.58 KB | None | 0 0
  1. package.path = package.path .. ";/capis/dturtle.lua"
  2. local dturtle = require "dturtle"
  3. local args = { ... }
  4.  
  5.  
  6.  
  7. if #args < 1 then
  8.     print("Program usage:")
  9.     print("udig area <height> <width> <depth>")
  10.     print("udig drowse <count> <size> <length>")
  11. else
  12.     if args[1] == 'area' and #args < 3 then
  13.         print("Dig area subprogram usage:")
  14.         print("udig area <height> <width> <depth>")
  15.     end
  16. end
  17.  
  18. if args[1] == 'area' then
  19.     height = tonumber(args[2])
  20.     width = tonumber(args[3])
  21.     depth = tonumber(args[4])
  22.     dturtle.dig_area(height, width, depth)
  23. end
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement