Advertisement
Guest User

glasses

a guest
Oct 20th, 2014
218
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Lua 0.56 KB | None | 0 0
  1. glass = peripheral.wrap("top")
  2. cell = peripheral.wrap("cofh_thermalexpansion_energycell_0")
  3. reactor1 = peripheral.wrap("BigReactors-reactor_0")
  4.  
  5. function vakje1()
  6.   glass.addBox(1,1,80,30,0xFFFFFF,0.2)
  7. end
  8.  
  9.  
  10. function tijd()
  11.   time = textutils.formatTime(os.time(), false)
  12.   glass.addText(5,2,"Time: " .. time, 0xFF0000)
  13. end
  14.  
  15.  
  16. function energycell()
  17.   energy = cell.getEnergyStored("cofh_thermalexpansion_energycell_0")
  18.   glass.addText(5,12,energy .. "rf",0xFF0000)
  19. end
  20.  
  21.  
  22. while true do
  23.   glass.clear()
  24.   vakje1()
  25.   tijd()
  26.   energycell()
  27.   sleep(1)
  28. end
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement