Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- -- Video of it in action: https://www.youtube.com/watch?v=kTzkTcCTVZg&list=PL9XabkF_A5YhxWelwj2yzjcegL9E0WLw6
- for i = 1, 16 do --checks all of the turtles slots
- for k, v in pairs(turtle.getItemDetail(i)) do --read the table that gets generated
- if k == "damage" and v ~= 0 then -- checks if the item is damaged
- turtle.select(i) --selects the slot with the damaged item
- turtle.drop() --drops the item
- end
- end
- end
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement