Advertisement
Anime0258

ComputerCraft (Draconic Evolution Energy Core)

May 6th, 2016
968
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Lua 0.99 KB | None | 0 0
  1. --Creator=Anime0258 aka An1m3wolf aka Animewolf0258 aka animewolf(yt)
  2.  
  3. while true do
  4.  sleep(1)
  5.  local pylon = peripheral.wrap("draconic_rf_storage_5") --must be change for your setup (draconic evolution energy pylon)
  6.  local mon = peripheral.wrap("monitor_61") --same here or type in the side the monitor is relate to the computer e.g. top
  7.  local rfstored = math.abs(pylon.getEnergyStored() / 1000000000)
  8.  local rfmax = math.abs(pylon.getMaxEnergyStored() / 1000000000)
  9.  mon.setBackgroundColor(colors.black)
  10.  
  11.  mon.setCursorPos(2,1)
  12.  mon.setTextColor(colors.white) --can be changed to every color e.g. gray
  13.  mon.write("Draconic Energy Core")
  14.  
  15.  mon.setCursorPos(2,2)
  16.  mon.setTextColor(colors.white)
  17.  mon.write("RF Stored: ")
  18.  mon.setTextColor(colors.lime)
  19.  mon.write(rfstored) --see line 7
  20.  mon.write(" B            ")
  21.  
  22.  mon.setCursorPos(2,3)
  23.  mon.setTextColor(colors.white)
  24.  mon.write("RF Max Stored: ")
  25.  mon.setTextColor(colors.lime)
  26.  mon.write(rfmax) --see line 8
  27.  mon.write(" B")
  28. end
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement