DerMarten

Brille

Nov 15th, 2015
120
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. local glass = peripheral.wrap("right")
  2. local me = peripheral.wrap("back")
  3. print (me.doc("getDemandedEnergy"))
  4. function addBox()
  5.      glass.addBox(1,1,220,10,0xFFFFFF,0.2)
  6. end
  7.  
  8.  
  9. function mePower()
  10.     local power = me.getAvgPowerUsage()
  11.     glass.addText(5,2,"ME Power usage: ca.".. power*2 .." RF/t", 0x000000)
  12. end
  13. while true do
  14.     glass.clear()
  15.     addBox()
  16.     mePower()
  17.     glass.sync()
  18.     sleep(0.1)
  19. end
RAW Paste Data