Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- -------VARIABILI-------
- local reactor = peripheral.wrap("BigReactors-Reactor_0")
- local mon = peripheral.wrap("monitor_0")
- mon.setTextScale(0.5)
- local CN = colors.black
- local CB = colors.white
- local CR = colors.red
- local CV = colors.green
- local AC = false
- ----------------------
- mon.setBackgroundColor(CN)
- mon.clear()
- --------SCRIPT--------
- while true do
- ------Stato------
- mon.setCursorPos(1,1)
- mon.setTextColor(CB)
- AC = reactor.getActive()
- if(AC == true) then
- mon.setTextColor(CV)
- mon.setCursorPos(1,1)
- mon.clearLine()
- mon.write("Stato: Attivato")
- else
- mon.setTextColor(CR)
- mon.setCursorPos(1,1)
- mon.clearLine()
- mon.write("Stato: Disattivato")
- end
- -----RF/Tick-----
- mon.setCursorPos(1,3)
- mon.setTextColor(CB)
- mon.write("RF/T: ")
- mon.write(math.floor(reactor.getEnergyProducedLastTick()))
- ---Energy-Stored---
- mon.setCursorPos(1,5)
- mon.setTextColor(CB)
- mon.write("Energia immagazzinata: ")
- mon.write(math.floor(reactor.getEnergyStored()))
- ------Calore-------
- mon.setCursorPos(1,7)
- mon.setTextColor(CB)
- mon.write("Temperatura del case: ")
- mon.write(math.floor(reactor.getCasingTemperature()))
- mon.setCursorPos(1, 9)
- mon.setTextColor(CB)
- mon.write("Temperatura del carburante: ")
- mon.write(math.floor(reactor.getFuelTemperature()))
- -------------------------
- os.sleep(3)
- end
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement