Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- args={...}
- if args[1]~=nil then
- n=tonumber(args[1])
- end
- function digC()
- isFull()
- turtle.digUp()
- turtle.dig()
- turtle.digDown()
- end
- function digL(n)
- for i=1,n do
- digC()
- turtle.forward()
- end
- end
- function dump()
- turtle.select(1)
- turtle.placeUp()
- for idump=2,16 do
- turtle.select(idump)
- turtle.dropUp()
- end
- turtle.select(1)
- turtle.digUp()
- end
- function isFull()
- if turtle.getItemCount(16)>0 then
- dump()
- end
- end
- n=1
- while true do
- digL(n)
- turtle.turnRight()
- digL(n)
- turtle.turnRight()
- n=n+1
- end
Add Comment
Please, Sign In to add comment