Back to mods
Restart Detector project artwork

Modrinth · Minecraft mod

Restart Detector

Stop sensitive farms and flying machines from breaking on server restarts.

Choose a version Pick your version below, then grab the matching file.

Quick answer

Which Restart Detector release should I use?

Updated 4 days ago
Latest stable file 1.3.0+26.3
Game version 26.3
Loader Fabric

Restart Detector 1.3.0+26.3 targets 26.3 with Fabric. Do not install it on the client. It must be installed on the dedicated server. All 1 required mods have matching files.

Where it goes

Is Restart Detector required on the client, server, or both?

Do not install it on the client. It must be installed on the dedicated server.

Client Not supported
Dedicated server Required
Loader for this release Fabric
Required install it here Optional supported, not mandatory Not supported do not install here Source doesn’t say do not assume

This file is marked server-only.

What else does Restart Detector 1.3.0+26.3 need?

1.3.0+26.3. Change the file and its required mods may change too.

All 1 required mods have matching files

Install Fabric API first. We found matching files for this game-version and loader setup.

Fabric API Needed by Restart Detector 1.3.0+26.3
required
Matching file found Matched file: 0.163.0+26.3

We only count dependency files that match this setup. A file for another loader does not fill the gap.

Before you install it

Add Restart Detector without breaking your instance.

Built for Restart Detector 1.3.0+26.3. Pick another file and the loader, install side or required mods may change.

  1. 01

    Stick to this file

    Use 1.3.0+26.3. It targets 26.3 with Fabric; another release may have different loader, side or dependency requirements.

  2. 02

    Bring the mods it needs

    Install Fabric API first. We found matching files for this game-version and loader setup.

  3. 03

    Put it on the correct side

    Do not install it on the client. It must be installed on the dedicated server.

  4. 04

    Pick the file you checked

    Use the “Get this file” button beside 1.3.0+26.3. It opens that exact file at the source.

About this project

What does Restart Detector add?

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:

  • hijackStopCommand (default: true): Whether to hijack the vanilla /stop command to add a countdown.
  • stopCountdownTicks (default: 600 (30s)): The amount of ticks to wait before actually shutting down the server.

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

Project description from Modrinth.

Pick your setup

Restart Detector by Minecraft version and loader

Choose the version and loader you play, then open the matching release.

25 available setups

Showing the newest 12 of 25 game versions. Older files are in the list below.

Check the dependencies, then try the file in a copied instance before changing a world you care about.

Recent files

Restart Detector versions and loaders

34 of 34 releases match

Looking for an older file? The official Modrinth project page is in Resources.