Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- local ironChestName = "ironchest:crystal_chest_6"
- local copperChestName = "ironchest:crystal_chest_7"
- local goldChestName = "ironchest:crystal_chest_3"
- local osmiumChestName = "ironchest:crystal_chest_4"
- local tinChestName = "ironchest:crystal_chest_8"
- local leadChestName = "ironchest:crystal_chest_5"
- local uraniumChestName = "ironchest:crystal_chest_9"
- local chestName = "quark:variant_chest_5"
- local inputChest = peripheral.wrap(chestName)
- local chests = {
- iron_ingot = ironChestName,
- gold_ingot = goldChestName,
- copper_ingot = copperChestName,
- ingot_osmium = osmiumChestName,
- ingot_tin = tinChestName,
- ingot_uranium = uraniumChestName,
- ingot_lead = leadChestName
- }
- while true do
- if inputChest.getItemDetail(1) ~= nil then
- for i = 1, inputChest.size(), 1 do
- local detail = inputChest.getItemDetail(i)
- if detail == nil then break end
- local name = detail.name:gsub(".*:","")
- if chests[name] ~= nil then
- inputChest.pushItems(chests[name], i, 64)
- end
- end
- end
- os.sleep(0.05)
- end
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement