local tArgs = { ... }
local nCount = tArgs[1]
if not nCount then
print("Usage: clear <count>")
return
end
if nCount==0 then
print("Arg 1, <count> must be greater than zero!")
return
end
for n=1,nCount do
if turtle.detect() then
turtle.dig()
turtle.forward()
else
turtle.forward()
end
end
Comments