Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- -- pastebin get FWFLeJG1 reactor.lua
- reactor = peripheral.wrap("Bigreactors-Reactor_0")
- display = peripheral.wrap("monitor_0")
- while true do
- local tevent, tperipheral_name, tx, ty = os.pullEvent("monitor_touch")
- if peripheral_name == display then
- end
- --display.setTextSize(3)
- display.clear()
- display.setCursorPos(1,10)
- display.write(string.format("Fuel Left : %d mb / %d mb",reactor.getFuelAmount(),reactor.getFuelAmountMax()))
- display.setCursorPos(1,9)
- display.write(string.format("Generated RF/Tick : %d RF/t",reactor.getEnergyProducedLastTick()))
- display.setCursorPos(1,8)
- display.write(string.format("Casing Temperature : %d °C",reactor.getTemperature()))
- display.setCursorPos(1,7)
- display.write(string.format("Core Temperature : %d °C",reactor.getFuelTemperature()))
- display.setCursorPos(1,6)
- display.write(string.format("Fuel Reactivity : %d %d",reactor.getFuelReactivity(),"%"))
- display.setCursorPos(1,5)
- display.write(string.format("Stored RF : %d RF",reactor.getEnergyStored()))
- end
Add Comment
Please, Sign In to add comment