Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- -- Check&ClearInventory
- function ClearInventory()
- turtle.select(15)
- turtle.dig()
- turtle.place()
- for i=1, 14 do
- turtle.select(i)
- turtle.drop()
- end
- turtle.select(15)
- turtle.dig()
- turtle.select(1)
- end
- function CheckInventory()
- local InvFull = true
- for i=1, 14 do
- local InvCount = turtle.getItemCount(i)
- if InvCount == 0 then
- InvFull = false
- end
- end
- if InvFull then
- ClearInventory()
- return false
- end
- end
- CheckInventory()
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement