Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- local cell = peripheral.wrap("right")
- local m = peripheral.wrap("monitor_2")
- local energy = 0
- local energyMax = 0
- while true do
- -- Getting and setting status vars.--
- energy = cell.getEnergyStored()
- energy = energy/1000000
- energyMax = cell.getMaxEnergyStored
- ebergyMax = energyMax/1000000
- --Displaying status vars.--
- m.clear()
- m.setCursorPos(1,1)
- m.setTextColor(colors.cyan)
- m.write("Energy Core Information")
- m.setCursorPos(1,2)
- m.setTextColor(colors.white)
- m.write("Energy Stored: ")
- m.setCursorPos(20,2)
- m.setTextColor(colors.red)
- m.write(..energy " mRF")
- m.setCursorPos(1,3)
- m.setTextColor(colors.white)
- m.write("Storage Cap: ")
- m.setCursorPos(20,3)
- m.setTextColor(colors.red)
- m.write(..energyMax "mRF")
- --Redo every 0.1 sec.--
- os.sleep(0.1)
- end
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement