Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- --This program does not automate Nitro Crystals at this time
- local orb = peripheral.wrap("top")
- local inChest = peripheral.wrap("left")
- local outChest = peripheral.wrap("right")
- local size = inChest.size()
- while true do
- local orbSlot = orb.getItemDetail(2)
- local finishSlot = orb.getItemDetail(1)
- if (orbSlot == nil and finishSlot == nil) then
- for i=1, size do
- local contents = inChest.getItemDetail(i)
- if (contents ~= nil) then
- if (contents.name == "minecraft:diamond" or contents.name == "minecraft:emerald" or contents.name == "minecraft:blaze_rod" or contents.name == "minecraft:iron_ingot") then
- inChest.pushItems("top", i, 1)
- break
- end
- end
- end
- elseif (orbSlot ~= nil and orbSlot.name == "minecraft:iron_ingot") then
- local goldSlot = orb.getItemDetail(3)
- if (goldSlot == nil) then
- for i=1, size do
- local contents = inChest.getItemDetail(i)
- if (contents ~= nil) then
- if (contents.name == "minecraft:gold_ingot") then
- inChest.pushItems("top", i, 1)
- break
- end
- end
- end
- end
- elseif (finishSlot ~= nil) then
- if (finishSlot.name == "powah:steel_energized" or finishSlot.name == "powah:crystal_spirited" or finishSlot.name == "powah:crystal_niotic" or finishSlot.name == "powah:crystal_blazing") then
- orb.pushItems("right", 1)
- end
- end
- end
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement