Advertisement
LordMZTE

Energy Display

Jun 7th, 2017
117
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Lua 0.34 KB | None | 0 0
  1. screen = peripheral.wrap("monitor_0")
  2. nrgcell1 = peripheral.wrap("tile_thermalexpansion_cell_resonant_name_0")
  3. screen.setBackgroundColor(colors.orange)
  4. screen.setTextColor(colors.black)
  5. while true do
  6.   nrg1 = nrgcell1.getEnergyStored()
  7.   screen.clear()
  8.   screen.setCursorPos(1,1)
  9.   screen.write("Cell1: "..nrg1.." RF")
  10.   sleep(.1)
  11. end
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement