Back to mods
MContain project artwork

Modrinth · Minecraft mod

MContain

A server-side Fabric mod for player containment.

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

Quick answer

Which MContain release should I use?

Updated 2 months ago
Latest stable file 4.0.0
Game version 26.3
Loader Fabric

MContain 4.0.0 targets 26.3 with Fabric. Do not install it on the client. It must be installed on the dedicated server. No extra mods listed for this file.

Where it goes

Is MContain 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 MContain 4.0.0 need?

4.0.0. Change the file and its required mods may change too.

No extra mods listed for this file

This file does not list any required mods. Do not add a library just because a different file uses it.

This file does not list any required or optional mods.

Before you install it

Add MContain without breaking your instance.

Built for MContain 4.0.0. Pick another file and the loader, install side or required mods may change.

  1. 01

    Stick to this file

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

  2. 02

    Bring the mods it needs

    This file does not list any required mods. Do not add a library just because a different file uses it.

  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 4.0.0. It opens that exact file at the source.

About this project

What does MContain add?

What is it

Two tools in one:

Gate - prevents unverified players from leaving the spawn area using teleport containment, and forces them into adventure mode so they can't break or place anything while inside.

Jail - locks a player into an exploration-proof cell, forced into adventure mode, with an optional sentence length.

Who is it for

Server operators for small public (or private, if your friends are naughty) non whitelisted servers (it works as an ingame whitelist ofsorts).

How does it work

The mod can automatically teleport unverified/jailed players back to the set location and set them to adventure mode so they can't cause any damage.
And release them back into survival once they are verified/served their sentence duration

Additional Info

Command                                  // Description 
/mcontain gate [radius]                  // Enable gate at world spawn (default radius 16)
/mcontain gate disable                   // Disable the gate
/mcontain gate verify [player]           // Verify a player (or self) to leave spawn
/mcontain gate unverify [player]         // Revoke a player's verification
/mcontain jail save <name> [radius]      // Save a jail cell at your position
/mcontain jail <name> <player> [minutes] // Send a player to a jail cell
/mcontain unjail <player>                // Release a player from jail
/mcontain jail list                      // List jail cells and current sentences
/mcontain jail clear                     // Release everyone and remove all cells
/mcontain reload                         // Reload config/mcontain.json
/mcontain status                         // Show gate and jail state
  • All teleportaion radii are configurable during setup

Project description from Modrinth.

Pick your setup

MContain by Minecraft version and loader

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

5 available setups

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

Recent files

MContain versions and loaders

5 of 5 releases match

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