Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- m = peripheral.wrap("top")
- p = peripheral.wrap("left")
- net = peripheral.wrap("bottom")
- p.clear()
- m.clear()
- local function Mfsu()
- while true do
- E = net.callRemote("mfsu_0","getEUStored")
- E2 = E / 40000000*100
- a = math.floor(E2)
- text = p.addText(5,15,"Eu Storage.",0xFFFFFF)
- text = p.addText(5,25,a.."%",0xFFFFFF)
- m.setCursorPos(1,1)
- m.setTextScale(2)
- m.setTextColor(0x800)
- a = math.floor(E2)
- m.write("Mfsu:")
- m.setCursorPos(1,2)
- m.write(a.."% EU")
- sleep(1)
- end
- end
- local function Cell()
- while true do
- c = net.callRemote("cofh_thermalexpansion_energycell_0","getEnergyStored","north")
- text2 = p.addText(5,35,"RF storage.",0x4000)
- text2 = p.addText(5,45,c.."RF",0x4000)
- m.setCursorPos(1,5)
- m.setTextColor(0x4000)
- m.setTextScale(2)
- m.write("Cell:")
- m.setCursorPos(1,6)
- m.write(c.."RF")
- end
- end
- function HUDreload()
- p.clear()
- m.clear()
- os.reboot()
- end
- function Main()
- while true do
- f = 0
- Cell()
- Mfsu()
- end
- end
- while true do
- Main()
- end
Advertisement
Add Comment
Please, Sign In to add comment