My code so far:
print("-- Banana Room --") local args = {...} if #args < 3 then print("Syntax: room <length> <width> <height>") return end x = tonumber(args[1]) -- length y = tonumber(args[2]) -- width z = tonumber(args[3]) -- height for i=1, y do while turtle.detect() do turtle.dig() sleep(1) end for i=1, z do while turtle.detectUp() do turtle.digUp() sleep(1) end turtle.up() end for i=1, z do turtle.down() end turtle.forward() end for i=1, y do turtle.back() end
Thanks ahead!