Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- term.clear()
- invSys = peripheral.wrap("bottom")
- mon = peripheral.wrap("right")
- mon.clear()
- mon.setCursorPos(1,1)
- mon.setTextScale(1)
- term.redirect(mon)
- print("Thunderbirds are go!\n\n")
- inv = {}
- inv["silicon"] = { id = 4362, meta = 13, stock = 128, order = 32 }
- for n,i in pairs(inv) do
- count=invSys.countOfItemType(i.id,i.meta)
- if (count<i.stock) then
- status = "More needed."
- stack = { qty = i.order, id = i.id, dmg = i.meta }
- invSys.requestCrafting(stack)
- else
- status = "Quantity ok."
- end
- print(n)
- print(" on hand: "..count)
- print(" reorder level: "..i.stock)
- print(" "..status)
- end
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement