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