chand1012

Tekkit Reactor Monitor

Jul 18th, 2016
71
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. local reactor = peripheral.wrap("back")
  2. local monitor = peripheral.wrap("right")
  3. monitor.setCursorBlink(false)
  4. while true do
  5.     local fuel = reactor.getFuelAmount()
  6.     local fuel_temp = reactor.getFuelTemperature()
  7.     local casing_temp = reactor.getCasingTemperature()
  8.     local react = reactor.getFuelReactivity()
  9.     local on = reactor.getActive()
  10.    
  11.     monitor.write("Reactor on?: " .. on.tostring())
  12.     monitor.write("Amount of fuel in mB: " .. fuel.tostring())
  13.     monitor.write("Fuel temp in C: " .. fuel_temp.tostring())
  14.     monitor.write("Casing temp in C: " .. casing_temp.tostring())
  15.     monitor.write("Reaction Level: " .. react.tostring)
  16. end
RAW Paste Data