Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- trashItems = {"minecraft:bow", "minecraft:leather_chestplate", "minecraft:leather_leggings", "minecraft:leather_boots", "minecraft:leather_helmet", "minecraft:chainmail_helmet", "minecraft:chainmail_chestplate", "minecraft:chainmail_leggings", "minecraft:chainmail_boots", "minecraft:iron_helmet", "minecraft:iron_chestplate", "minecraft:iron_leggings", "minecraft:iron_boots", "minecraft:golden_helmet", "minecraft:golden_chestplate", "minecraft:golden_leggings", "minecraft:golden_boots", "minecraft:iron_shovel", "minecraft:glass_bottle", "witchery:witchhand", "minecraft:potato", "minecraft:carrot"}
- function trashItem()
- turtle.turnRight()
- turtle.drop()
- turtle.turnLeft()
- end
- function storeItem()
- turtle.turnLeft()
- turtle.drop()
- turtle.turnRight()
- end
- while true do
- for i=1,16,1 do
- turtle.select(i)
- data = turtle.getItemDetail()
- local trashed = false
- for i,item in pairs(trashItems) do
- if data and data.name == item then
- trashed = true
- trashItem()
- break
- end
- end
- if not trashed then
- storeItem()
- end
- end
- end
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement