Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- -- pushItem
- -- getChannelInformation
- -- getEnergy
- -- getCraftingCPUs
- -- getChannelEnergyDemand
- -- getEnergyCapacity
- -- getCraftableFluids
- -- tanks
- -- getPatternsFor
- -- items
- -- getAverageEnergyDemand
- -- getAverageEnergyIncome
- -- pullFluid
- -- pushFluid
- -- pullItem
- local monitor = peripheral.wrap("left")
- local AE2 = peripheral.wrap("bottom")
- local MSCP = monitor.setCursorPos
- local MW = monitor.write
- local MC = monitor.clear
- local MCL = monitor.clearLine
- local MSTC = monitor.setTextColor
- local white = colors.white
- local black = colors.black
- local red = colors.red
- local green = colors.green
- local yellow = colors.yellow
- local grey = colors.gray
- local cyan = colors.cyan
- monitor.setTextScale(0.5)
- local x, y = monitor.getSize()
- local function Barrier(x)
- for i = 1, y do
- MSCP(x, i)
- MW("|")
- end
- end
- while true do
- sleep(5)
- local UselessItems = {}
- MC()
- MSCP(1, 1)
- MW("Energy Usage")
- MSCP(14, 1)
- MW("Energy Income")
- MSCP(28, 1)
- MW("Non-Stackable")
- for i = 1, x do
- MSCP(x, 2)
- MW("-")
- end
- MSCP(14, 3)
- MW(math.floor(AE2.getAverageEnergyIncome()) .. " AE/T")
- MSCP(1, 3)
- MW(math.floor(AE2.getAverageEnergyDemand()) .. " AE/T")
- local y2 = 2
- for _, items in pairs(AE2.items()) do
- for Type, Value in pairs(items) do
- if Type == "count" then
- if Value == 1 then
- print("Value is 1")
- print("inserting " .. items["name"])
- table.insert(UselessItems, items["name"])
- end
- end
- end
- end
- for f = 1, y do
- for k, v in pairs(UselessItems) do
- MSCP(28, y2 + f)
- MW(v)
- end
- end
- Barrier(13)
- Barrier(27)
- Barrier(41)
- end
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement