Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- local pipe = peripheral.wrap("bottom")
- local lp = pipe.getLP()
- local function it(id, meta)
- local b = lp.getItemIdentifierBuilder()
- b.setItemID(id)
- if meta then
- b.setItemData(meta)
- else
- end
- return b.build()
- end
- local keep = {[it("minecraft:glass")] = (64 * 4), [it("minecraft:stone")] = (64 * 4), [it("minecraft:torch")] = 64, [it("minecraft:stick")] = 64, [it("IC2:item.itemIngotAdvIron")] = (64 * 2), [it("Mekanism:Ingot", 4)] = (64 * 4), [it("Mekanism:EnrichedAlloy")] = 64, [it("Mekanism:ReinforcedAlloy")] = 64, [it("Mekanism:AtomicAlloy")] = 64, [it("ThermalFoundation:material", 73)] = 64, [it("Mekanism:ControlCircuit")] = 64, [it("minecraft:coal", 1)] = (64 * 8), [it("IC2:item.itemRubber")] = 64, [it("minecraft:chest")] = 64, [it("minecraft:piston")] = 64}
- while true do
- for item, want in pairs(keep) do
- local needed = (want - pipe.getItemAmount(item))
- if (needed > 0) then
- print("Req: ", needed, " x ", item.getName())
- pipe.makeRequest(item, needed, true)
- else
- end
- end
- os.sleep((60 * 10))
- end
- return nil
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement