Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- local count = 0
- function empty()
- for i=1,16 do
- while turtle.getItemCount(i)>0 do
- count=count+1
- print("Depositing Ender pearl " .. count)
- redstone.setOutput("bottom",true)
- sleep(0.1)
- redstone.setOutput("bottom",false)
- sleep(0.3)
- end
- end
- end
- while true do
- turtle.attack()
- turtle.select(1)
- if turtle.getItemCount(1)>0 then
- empty()
- end
- end
Advertisement
Add Comment
Please, Sign In to add comment