Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- p = peripheral.wrap("left")
- p.clear()
- function Main()
- while true do
- t = os.time()
- d = (textutils.formatTime(t,false))
- p.clear()
- box = p.addBox(4,30,100.00345,5,0xCD0000,0.5)
- text = p.addText(5,5,d,0xFFFFFF)
- text = p.addText(5,15,"Eu Storage.",0xFFFFFF)
- network = peripheral.wrap("bottom")
- E = network.callRemote("batbox_0","getStored")
- E = E / 10000000*100
- box = p.addBox(4,30,E,5,0x76EE00,1)
- meSystem()
- sleep(1)
- end
- end
- function meSystem()
- if meWait == 5 then
- meWait = 0
- totalSpace = network.callRemote("me_crafting_terminal_2","getTotalBytes")
- f = network.callRemote("me_crafting_terminal_2","getFreeBytes")
- f = f / totalSpace*100
- print(freeSpace)
- text = p.addText(5,45,"Me System,",0xFFFFFF)
- box = p.addBox(4,60,100.00345,5,0xCD0000,0.5)
- box = p.addBox(4,60,f,5,0x76EE00,1)
- else
- meWait = meWait + 1
- text = p.addText(5,45,"Me System.",0xFFFFFF)
- box = p.addBox(4,60,100.00345,5,0xCD0000,0.5)
- box = p.addBox(4,60,f,5,0x76EE00,1)
- end
- end
- function HUDreload()
- p.clear()
- os.reboot()
- end
- while true do
- f = 0
- meWait = 0
- Main()
- end
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement