ModShield

ModShield

Verify that client mods are allowed on the server

by
137 Downloads
fabricmanagementtechnologyutility
Rent Server with this Mod

About this Mod

ModShield

A lightweight simple to use mod, allowing server admins to check client mods as well as forbid players from using certain mods.
Or allow players to use only specific mods.

Usage

Simply download the latest mod version on the server and the client.
It's important to note that a server running ModShield will require all clients to use it as well.

Server Config

All configuration is done through the config file: config/modshield.properties.
After you launch the mod for the first time a template version will be automatically generated, with descriptions of all options and how to use them.
To realod the config use the /mod-shield-reload command. Keep in mind administrator permissions are required.

Show Example
#This is a template ModShield config file.
#If you want to allow only certain mods add them in the disallowed option, separated by commas.
#This way only mods in that option can be used by the client.
#
#If you want to allow only specified mods put them in the allowed option, separated by commas.
#
#savePlayerMods - when set to true ModShield will save mods used by players, that can be accessed through the API.
#onlyAllowServerMods - when set to true only mods found on the server will be allowed on the client.
#alwaysAllowedPlayers - list of players that can run every mod, separated by commas, UUIDs or names.
#autoUpdate - when set to true the mod will attempt to automatically update.
#Fri Mar 28 23:03:05 CET 2025
allowed=
autoUpdate=false
disallowed=
savePlayerMods=false

API Usage (For Mod Developers)

To use the mod as a library add the maven repository and declare it as a dependency, in your build.gradle file like so:

// Add the repository
repositories {
    maven {
        url = 'https://maven.avarisgates.com' // ModShield
    }
}

// Declare it as a dependency
dependencies {
    // To package the mod with yours
    modImplementation "com.avaris:ModShield:${project.modshield_version}"
    
    // To use the mod in a seperate .jar file
    // This won't strictly require the mod
    compileOnly "com.avaris:ModShield:${project.modshield_version}"
}

It's also recommended to add the following to your gradle.properties file:

mod_shield=CURRENT_VERSION

Be sure to add replace CURRENT_VERSION with the version you wish to use.
It's always recommended to use the latest one.

Available Versions

ModShield 1.3.4+2272c19release
MC 1.21.4fabric
March 23, 2025

How to Install ModShield on Your Server

1

Order Server

Order a Minecraft Java server with at least 3 GB RAM (4 GB recommended).

2

Set fabric Loader

In the panel under "Egg", select the fabric loader and matching Minecraft version (1.21.4).

3

Install Mod

Open the mod browser in the dashboard and search for "ModShield". Click "Install" – done! Alternatively, upload the .jar via SFTP to the /mods folder.

Compatibility

Mod Loaders

fabric

Minecraft Versions

1.21.4

Server-side

Required

Recommended RAM

4 GB(min. 3 GB)

Frequently Asked Questions

ModShield server crashes on startup – what to do?

Most common cause: wrong fabric version or insufficient RAM. Check the server log (latest.log) for "OutOfMemoryError" or "Mixin" errors. With Mado Hosting: ensure at least 3 GB RAM is allocated and the loader matches the mod version (1.21.4). You can switch loaders with one click in the panel.

Is ModShield compatible with fabric?

ModShield officially supports fabric for Minecraft 1.21.4. The Mado dashboard automatically detects incompatible loader combinations.

Server lagging with ModShield – how to optimize performance?

Recommended RAM: 4 GB (per 8 players). Use /spark profiler to check if ModShield consumes the most tick time. Common fixes: reduce server view-distance to 8-10, install "performant" or "starlight" as supplementary mods on Forge. With Mado Hosting, your server runs on NVMe SSDs with dedicated CPU cores for minimal latency.

Rent Modded Server

Install ModShield with just one click on your server.

Recommended RAM
4 GBab €8/mo
Min. 3 GB | +1 GB pro 8 Spieler
Create Server Now
1-Click Mod Install
NVMe SSD Storage
DDoS Protection included

Details

License
MIT License
Server-side
Required

Supported Versions

1.21.4