Advertisement
Guest User

startup

a guest
Aug 29th, 2016
55
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Lua 0.45 KB | None | 0 0
  1. local t = peripheral.wrap("monitor_49")
  2. local store = {peripheral.wrap("draconic_rf_storage_0"), peripheral.wrap("draconic_rf_storage_1")}
  3.  
  4.  
  5. while true do
  6. os.queueEvent("random_event")
  7. os.pullEvent()
  8. t.clear()
  9.  
  10. local st = (store[1]).getEnergyStored()+(store[2]).getEnergyStored()
  11.   t.setCursorPos(1,1)
  12.   t.setTextScale(1)
  13.   t.write("Rf/Stored")
  14.  
  15.   t.setCursorPos(2,2)
  16.   t.setTextScale(3)
  17.   t.write(st.. " Rf/Stored.")
  18.   sleep(0.1)
  19. end
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement