Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- --*PROGRAM BY TERCY*--
- --*Set Monitor*--
- monitor = "monitor_12"
- Mon = peripheral.wrap(monitor)
- --*Set EnergyCell*--
- energyCell = "tile_thermalexpansion_cell_hardened_name_0"
- Cell = peripheral.wrap(energyCell)
- --*Functions*--
- function title(color, tit)
- Mon.setTextScale(1)
- w,h = Mon.getSize()
- Mon.clear()
- Mon.setCursorPos(1,1)
- Mon.setBackgroundColor(color)
- Mon.clearLine()
- Mon.write("<")
- Mon.setCursorPos(w,1)
- Mon.write(">")
- Mon.setCursorPos(w/2.1,1)
- Mon.write(tit)
- Mon.setCursorPos(1,2)
- Mon.setBackgroundColor(colors.black)
- end
- function writeEnergy()
- Mon.setCursorPos(w/3.3,3)
- energy = Cell.getEnergyStored()
- Mon.write(energy.."/"..maxEnergy.." RF")
- sleep(0.2)
- end
- --*Body*--
- maxEnergy = Cell.getMaxEnergyStored()
- while true do
- title(colors.blue, "ENERGY")
- writeEnergy()
- end
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement