Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- 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
Advertisement
Add Comment
Please, Sign In to add comment