Restart Detector
This fully server-side mod adds special restart detectors to the game - new blocks that activate a redstone signal before server shutdown.
The new blocks can be used to safely disable complex redstone mechanisms, preventing their damage during reboots. Thanks to the lightweight design™ (doesn't require blockentity), detectors can be installed even on flying machines!
By default, the mod changes the behavior of the /stop command, adding a countdown before the actual server shutdown. This gives restart detectors enough time to activate. Additional subcommands for managing this behavior are also added.
Visual Design
The restart detector uses the daylight sensor model but is distinguished by having a pseudo-command block hovering above it. This allows it to work completely on the server side while maintaining visual uniqueness.

Functionality
All loaded restart detectors begin emitting a redstone signal when the server is about to shut down. The signal starts at strength 1 and gradually increases to 15 until the actual shutdown moment. When the server comes back online, the signal slowly decreases back to 0, providing time for the world to load before mechanisms are restarted.
Restart detectors CAN be moved by pistons. This feature allows using them on flying machines and other moving contraptions!

Commands
The mod modifies the /stop command, adding a configurable delay before the actual server shutdown. It is during this time window that all restart detectors emit a signal. Commands /stop cancel to cancel the countdown and /stop now for immediate shutdown are also added.
Configuration
The mod creates a configuration file at config/restart_detector.json with the following options:
hijackStopCommand(default:true): Determines whether to hijack the vanilla/stopcommand to add a countdown timer.stopCountdownTicks(default:600(30 seconds)): The number of ticks to wait before the actual server shutdown.
Server restart is required for configuration changes to take effect.