Advertisement
Guest User

Reactor_Display

a guest
Oct 20th, 2018
74
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Lua 0.71 KB | None | 0 0
  1. local reactor = peripheral.wrap("BigReactors-Reactor_2")
  2. local mon = peripheral.wrap("left")
  3. while true do  
  4.   mon.clear()
  5.   mon.setTextColor(colors.white)
  6.   mon.setCursorPos(1,1)
  7.   mon.write("Reactor Status")
  8.   mon.setCursorPos(1,2)
  9.   mon.setTextColor(colors.lightGray)
  10.   mon.write("===========================")
  11.   --RF/T Display
  12.   mon.setCursorPos(1,3)
  13.   mon.setTextColor(colors.white)
  14.   mon.write("RF/T: ")
  15.   mon.setTextColor(colors.lime)
  16.   mon.write(math.floor(reactor.getEnergyProducedLastTick() + 0.5))
  17.  
  18.   --Fuel Amount
  19.   mon.setCursorPos(1,4)
  20.   mon.setTextColor(colors.white)
  21.   mon.write("Fuel: ")
  22.   mon.setTextColor(colors.lime)
  23.   mon.write(reactor.getFuelAmount()/144)
  24.  
  25.   os.sleep(2)
  26. end
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement