Guest User

controller

a guest
Nov 29th, 2014
235
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Lua 1.15 KB | None | 0 0
  1. m = peripheral.wrap("top")
  2. p = peripheral.wrap("left")
  3. net = peripheral.wrap("bottom")
  4. p.clear()
  5. m.clear()
  6. local function Mfsu()
  7.        while true do
  8.         E = net.callRemote("mfsu_0","getEUStored")
  9.         E2 = E / 40000000*100
  10.         a = math.floor(E2)
  11.         text = p.addText(5,15,"Eu Storage.",0xFFFFFF)
  12.         text = p.addText(5,25,a.."%",0xFFFFFF)
  13.         m.setCursorPos(1,1)
  14.         m.setTextScale(2)
  15.         m.setTextColor(0x800)
  16.         a = math.floor(E2)
  17.         m.write("Mfsu:")
  18.         m.setCursorPos(1,2)
  19.         m.write(a.."% EU")
  20.         sleep(1)
  21.  end
  22. end
  23.  
  24. local function Cell()
  25.        while true do
  26.        c = net.callRemote("cofh_thermalexpansion_energycell_0","getEnergyStored","north")
  27.        text2 = p.addText(5,35,"RF storage.",0x4000)
  28.        text2 = p.addText(5,45,c.."RF",0x4000)
  29.        m.setCursorPos(1,5)
  30.        m.setTextColor(0x4000)
  31.        m.setTextScale(2)
  32.        m.write("Cell:")
  33.        m.setCursorPos(1,6)
  34.        m.write(c.."RF")
  35.  end
  36. end
  37.  
  38. function HUDreload()
  39.  p.clear()
  40.  m.clear()
  41.  os.reboot()
  42. end
  43.  
  44. function Main()
  45.  while true do
  46.   f = 0
  47.   Cell()
  48.   Mfsu()
  49.  end
  50. end
  51.  
  52. while true do
  53.  Main()
  54. end
Advertisement
Add Comment
Please, Sign In to add comment