Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- NN_REACTOR = "BigReactors-Reactor_1"
- reactor = peripherals.wrap( NN_REACTOR )
- monitor = peripherals.wrap( "back" )
- if reactor == nil or not reactor.getConnected() then
- drawText( monitor.getWidth() / 2, monitor.getHeight() / 2, "ERR 01 : REACTOR NOT FOUND", "red", "white" )
- elseif
- drawText( monitor.getWidth() / 2, monitor.getHeight() / 2, "REACTOR CONTROL OPERATIONAL", "green", "white" )
- end
- function drawText( x, y, text, backColor, foreColor )
- monitor.setTextColor( foreColor )
- monitor.setBackgroundColor( backColor )
- monitor.setCursorPos( x, y )
- monitor.write( text )
- end
Advertisement
Add Comment
Please, Sign In to add comment