Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- local tArgs = {...}
- local slotNum
- local slotItemCount
- local fullItemCount
- local function returnSupplies()
- print( "Returning snow..." )
- turtle.left()
- turtle.left()
- for n=1, 16 do
- turtle.select(n)
- turtle.drop()
- end
- turtle.select(1)
- end
- local function collect()
- local iFull = true
- for n=1,16 do
- local nCount = turtle.getItemCount(n)
- if nCount ~= 16 then
- iFull = false
- end
- end
- if iFull then
- print( "No storage space left." )
- return false
- end
- return true
- end
- local function dig()
- while collect() do
- turtle.dig()
- end
- end
- dig()
Advertisement
Add Comment
Please, Sign In to add comment