Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- local component = require("component")
- local adaptor1 = component.get("07e57877")
- local adaptor2 = component.get("f9bf229f")
- local adaptor3 = component.get("44e361a0")
- local adaptor4 = component.get("13ec796d")
- local adaptor5 = component.get("a5f06e0e")
- local adaptor6 = component.get("aa446ca3")
- local adaptor7 = component.get("e0d952ea")
- local adaptor8 = component.get("e19f8768")
- local adaptor9 = component.get("5f531a57")
- local adaptor10 = component.get("42886b33")
- local adaptor11 = component.get("8428eef9")
- local adaptor12 = component.get("b34daf2e")
- local adaptor13 = component.get("3d73ba80")
- local adaptor14 = component.get("959cbd84")
- local adaptor15 = component.get("2f73b573")
- local adaptor16 = component.get("5904f935")
- --A = north/side 2, B = south/side 3
- local machine1a = component.get("0b3e0ec1")
- local machine1b = component.get("dc4d58dd")
- local machine2a = component.get("56e74aca")
- local machine2b = component.get("832c1208")
- local machine3a = component.get("0fc09fee")
- local machine3b = component.get("06e0ce26")
- local machine4a = component.get("c53f1ee0")
- local machine4b = component.get("7c820cd7")
- local machine5a = component.get("ebee096d")
- local machine5b = component.get("24c43dd6")
- local machine6a = component.get("0282a76a")
- local machine6b = component.get("02141c62")
- local machine7a = component.get("b124ee3e")
- local machine7b = component.get("b52688df")
- local machine8a = component.get("5f547ee3")
- local machine8b = component.get("035831ec")
- local machine9a = component.get("e706b4d4")
- local machine9b = component.get("38d98119")
- local machine10a = component.get("f35f3d27")
- local machine10b = component.get("f71563a3")
- local machine11a = component.get("6b6825d2")
- local machine11b = component.get("a55f99f8")
- local machine12a = component.get("265b5332")
- local machine12b = component.get("8c4e5b41")
- local machine13a = component.get("2aff57e4")
- local machine13b = component.get("9b6b56c6")
- local machine14a = component.get("492d1740")
- local machine14b = component.get("039094b1")
- local machine15a = component.get("f5160e96")
- local machine15b = component.get("63c4244f")
- local machine16a = component.get("c9c34a05")
- local machine16b = component.get("565b8c84")
- component.gpu.fill(0, 0, 160, 50, " ")
- function getName(string)
- if (string == "gt.metaitem.01.7810.name") then
- return "Centrifuged Redstone"
- end
- return string
- end
- while true do
- for i = 1, 16 do
- adaptorPrime = nil
- machineNorth = nil
- machineSouth = nil
- if i == 1 then
- adaptorPrime = adaptor1
- machineNorth = machine1a
- machineSouth = machine1b
- end
- if i == 2 then
- adaptorPrime = adaptor2
- machineNorth = machine2a
- machineSouth = machine2b
- end
- if i == 3 then
- adaptorPrime = adaptor3
- machineNorth = machine3a
- machineSouth = machine3b
- end
- if i == 4 then
- adaptorPrime = adaptor4
- machineNorth = machine4a
- machineSouth = machine4b
- end
- if i == 5 then
- adaptorPrime = adaptor5
- machineNorth = machine5a
- machineSouth = machine5b
- end
- if i == 6 then
- adaptorPrime = adaptor6
- machineNorth = machine6a
- machineSouth = machine6b
- end
- if i == 7 then
- adaptorPrime = adaptor7
- machineNorth = machine7a
- machineSouth = machine7b
- end
- if i == 8 then
- adaptorPrime = adaptor8
- machineNorth = machine8a
- machineSouth = machine8b
- end
- if i == 9 then
- adaptorPrime = adaptor9
- machineNorth = machine9a
- machineSouth = machine9b
- end
- if i == 10 then
- adaptorPrime = adaptor10
- machineNorth = machine10a
- machineSouth = machine10b
- end
- if i == 11 then
- adaptorPrime = adaptor11
- machineNorth = machine11a
- machineSouth = machine11b
- end
- if i == 12 then
- adaptorPrime = adaptor12
- machineNorth = machine12a
- machineSouth = machine12b
- end
- if i == 13 then
- adaptorPrime = adaptor13
- machineNorth = machine13a
- machineSouth = machine13b
- end
- if i == 14 then
- adaptorPrime = adaptor14
- machineNorth = machine14a
- machineSouth = machine14b
- end
- if i == 15 then
- adaptorPrime = adaptor15
- machineNorth = machine15a
- machineSouth = machine15b
- end
- if i == 16 then
- adaptorPrime = adaptor16
- machineNorth = machine16a
- machineSouth = machine16b
- end
- inputNorth = component.invoke(adaptorPrime, "getStackInSlot", 2, 5)
- output1North = component.invoke(adaptorPrime, "getStackInSlot", 2, 6)
- output2North = component.invoke(adaptorPrime, "getStackInSlot", 2, 7)
- output3North = component.invoke(adaptorPrime, "getStackInSlot", 2, 8)
- inputSouth = component.invoke(adaptorPrime, "getStackInSlot", 3, 5)
- output1South = component.invoke(adaptorPrime, "getStackInSlot", 3, 6)
- output2South = component.invoke(adaptorPrime, "getStackInSlot", 3, 7)
- output3South = component.invoke(adaptorPrime, "getStackInSlot", 3, 8)
- strItemNorth = "Item: None"
- strItemSouth = "Item: None"
- strQtyNorth = "Quantity: -"
- strQtySouth = "Quantity: -"
- strPowerNorth = "Power: " .. component.invoke(machineNorth, "getStoredEU") .. "/" .. component.invoke(machineNorth, "getEUCapacity")
- strPowerSouth = "Power: " ..component.invoke(machineSouth, "getStoredEU") .. "/" .. component.invoke(machineSouth, "getEUCapacity")
- strProgressNorth = "Progress: " .. component.invoke(machineNorth, "getWorkProgress") .. "/" .. component.invoke(machineNorth, "getWorkMaxProgress")
- strProgressSouth = "Progress: " .. component.invoke(machineSouth, "getWorkProgress") .. "/" .. component.invoke(machineSouth, "getWorkMaxProgress")
- if inputNorth ~= nil then
- strItemNorth = "Item: " .. getName(inputNorth["label"])
- strQtyNorth = "Quantity: " .. inputNorth["size"]
- end
- if inputSouth ~= nil then
- strItemSouth = "Item: " .. getName(inputSouth["label"])
- strQtySouth = "Quantity: " .. inputSouth["size"]
- end
- component.gpu.fill(0, i*2-1, 160, 1, " ")
- component.gpu.fill(0, i*2, 160, 1, " ")
- component.gpu.set(2, i*2-1, "GT Universal Pulverizer " .. i*2-1)
- component.gpu.set(2, i*2, "GT Universal Pulverizer " .. i*2)
- component.gpu.set(30, i*2-1, strItemNorth)
- component.gpu.set(30, i*2, strItemSouth)
- component.gpu.set(64, i*2-1, strQtyNorth)
- component.gpu.set(64, i*2, strQtySouth)
- component.gpu.set(80, i*2-1, strPowerNorth)
- component.gpu.set(80, i*2, strPowerSouth)
- component.gpu.set(104, i*2-1, strProgressNorth)
- component.gpu.set(104, i*2, strProgressSouth)
- end
- end
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement