HomeJavaModsRestart Detector
Restart Detector
ModsJava

Restart Detector

by enjarai · on Modrinth

Which Minecraft do you have?

Every version of the game needs its own build. Pick yours, then download — the wrong build installs fine and then does nothing in the game. This mod is built for Fabric only.

⬇ Download for 26.2⬇ Download for 26.1–26.1.2⬇ Download for 1.21.11⬇ Download for 1.21.9–1.21.10⬇ Download for 1.21.6–1.21.8⬇ Download for 1.21.5⬇ Download for 1.21.4⬇ Download for 1.21.2–1.21.3⬇ Download for 1.21–1.21.1⬇ Download for 1.20.5–1.20.6⬇ Download for 1.20.3–1.20.4⬇ Download for 1.20.2⬇ Download for 1.20–1.20.1⬇ Download for 1.19.4
I don't know my version or loader
Open the Minecraft launcher and look at the profile you play on — it names both, like fabric-loader-1.21.4. The version also shows in the bottom-right corner of the game's main menu.
No loader in the profile name? Then it's plain Minecraft, and these mods won't run — you need Fabric or NeoForge installed first.
Restart Detector — screenshot 1

Restart Detector

This fully server-side mod adds Restart Detectors, a new block that will output a redstone signal before server shutdowns.

These new blocks can be used to disable sensitive redstone contraptions to prevent expensive breakages, and can even be used on flying machines due to their lightweight design™! (no blockentity required)

By default, this mod hijacks the behaviour of the /stop command to use a countdown before actually shutting down the server, giving restart detectors time to activate. It also adds a few subcommands to manage this behaviour.

Visuals

The Restart detector uses the model of a daylight sensor, but distinguishes itself by having a fake command block hovering above it. This allows it to work fully server-side, while still being visually distinct.

A Restart Detector ingame

Functionality

All Restart Detectors that are loaded will output a redstone signal when the server is about to shut down, starting at strength 1, and slowly increasing to 15 until the actual shutdown. When the server comes back online, the signal will slowly decay back to 0 to makes sure the world has time to load before contraptions are started back up.

Restart Detectors CAN be moved by pistons. This lets you make use of them on flying machines and other moving contraptions!

A Restart Detector on a flying machine

Commands

The /stop command is modified by this mod to wait a configurable amount of time before actually shutting down the server, it is within this window that all Restart Detectors will output a signal. It also adds a /stop cancel and /stop now command to cancel and bypass the countdown respectively.

Configuration

This mod creates a config file at config/restart_detector.json with the following options:

The server must be restarted for changes to the config to take effect.

Quick facts

Install steps are the general flow for this file type — How to install Minecraft Java mods & modpacks walks through it step by step.

Verified by MCModsHub

These come from our own check of the pack file, not from the source page.

Explore more