Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- local item1 = "minecraft:air"
- local item2 = "minecraft:air"
- local item3 = "minecraft:air"
- while true do
- local foundItemToDrop = false
- turtle.attack()
- for slot = 1, 16 do
- local itemDetail = turtle.getItemDetail(slot)
- if itemDetail and itemDetail.name ~= item1 and itemDetail.name ~= item2 and not string.match(itemDetail.name, "^" .. item3) then
- turtle.select(slot)
- turtle.drop()
- foundItemToDrop = true
- end
- end
- if not foundItemToDrop then
- print("No items left to drop.")
- sleep(0.5)
- end
- end
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement