Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- chestDir = "dropDown" -- drop down into e.g. a chest
- print("Simple grinder turtle is working!")
- function drop_all_items()
- for i = 1, 15 do
- if turtle.getItemCount(i)~=0 then
- turtle.select(i)
- turtle[chestDir]()
- end
- end
- turtle.select(1)
- end
- while true do -- always run the lines below
- turtle.attack()
- if turtle.getItemCount( 1 ) > 0 then
- drop_all_items()
- end
- sleep(.1) -- we are performance-friendly, the turtle waits for 0.1 second
- end -- end of loop
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement