Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- while true do
- turtle.attack()
- local isFull = true
- local itemPresent = false
- for slot = 1, 16 do
- if turtle.getItemCount(slot) > 0 then
- itemPresent = true
- end
- if turtle.getItemCount(slot) == 0 then
- isFull = false
- break
- end
- end
- if itemPresent then
- if isFull or not turtle.detect() then
- for slot = 1, 16 do
- turtle.select(slot)
- turtle.drop()
- end
- end
- end
- os.sleep(0.5) -- to avoid spamming the server
- end
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement