Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- local reactor = peripheral.wrap("back")
- local str = "Current Insertion: "
- term.clear()
- term.setCursorPos(1, 1)
- term.write(str)
- while true do
- local energyRatio = reactor.battery().stored() / reactor.battery().capacity()
- reactor.setAllControlRodLevels(energyRatio * 100)
- term.setCursorPos(string.len(str) + 1, 1)
- term.write(reactor.getControlRod(0).level())
- sleep(0.5 - 0.05) -- Makes it run about 2 times a second (if the server is doing well)
- end
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement