Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- --Creator=Anime0258 aka An1m3wolf aka Animewolf0258 aka animewolf(yt)
- while true do
- sleep(1)
- local pylon = peripheral.wrap("draconic_rf_storage_5") --must be change for your setup (draconic evolution energy pylon)
- local mon = peripheral.wrap("monitor_61") --same here or type in the side the monitor is relate to the computer e.g. top
- local rfstored = math.abs(pylon.getEnergyStored() / 1000000000)
- local rfmax = math.abs(pylon.getMaxEnergyStored() / 1000000000)
- mon.setBackgroundColor(colors.black)
- mon.setCursorPos(2,1)
- mon.setTextColor(colors.white) --can be changed to every color e.g. gray
- mon.write("Draconic Energy Core")
- mon.setCursorPos(2,2)
- mon.setTextColor(colors.white)
- mon.write("RF Stored: ")
- mon.setTextColor(colors.lime)
- mon.write(rfstored) --see line 7
- mon.write(" B ")
- mon.setCursorPos(2,3)
- mon.setTextColor(colors.white)
- mon.write("RF Max Stored: ")
- mon.setTextColor(colors.lime)
- mon.write(rfmax) --see line 8
- mon.write(" B")
- end
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement