Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- local items = {
- "EnderIO:itemAlloy", -- enderio-barren
- "EnderIO:item.darkSteel_boots",
- "Botanie:manaResource",
- "Thaumcraft:ItemResource",
- "appliedenergistics2:item.ItemMultiMaterial", -- certus und shit
- "minecraft:cooked_porkchop",
- "minecraft:diamond",
- "minecraft:dye", --lapis
- "minecraft:ender_pearl",
- "minecraft:gold",
- "minecraft:iron",
- "minecraft:iron_boots",
- "minecraft:iron_chestplate",
- "minecraft:iron_helmet",
- "minecraft:iron_helmet",
- "minecraft:iron_ingot",
- "minecraft:iron_leggings",
- "minecraft:iron_pickaxe",
- "minecraft:obsidian",
- "minecraft:quartz",
- "minecraft:emerald",
- "magicalcrops:magicalcrops_1MinicioEssence",
- "minecraft:blaze_powder",
- "minecraft:redstone",
- "minecraft:book",
- "minecraft:paper",
- "minecraft:glowstone"
- }
- local name
- local found
- while true do
- for i = 1, 16, 1 do
- if turtle.getItemCount(i) > 0 then
- turtle.select(i)
- name = turtle.getItemDetail().name
- found = false
- for j = 0, #items, 1 do
- if name == items[j] then
- turtle.drop()
- found = true
- break
- end
- end
- if not found then
- turtle.dropUp()
- end
- else
- sleep(.2)
- end
- end
- end
Advertisement
Add Comment
Please, Sign In to add comment