Home›Java›Mods›BrandBlock
ModsJava

BrandBlock

by londiuh · on Modrinth

Which build do you need?

This mod ships a separate file for every mod loader and every version of the game. Pick both, then download — the wrong build installs fine and then does nothing in the game.

Mod loader

Minecraft version

⬇ Download for 1.20.5–1.21.1 · Fabric⬇ Download for 1.20.3–1.20.4 · Fabric⬇ Download for 1.20.2 · Fabric⬇ Download for 1.17–1.20.1 · Fabric⬇ Download for 1.20.5–1.21.1 · Quilt⬇ Download for 1.20.3–1.20.4 · Quilt⬇ Download for 1.20.2 · Quilt⬇ Download for 1.17–1.20.1 · Quilt
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.

BrandBlock

Simple Fabric server-side mod to block certain client brands from joining your server

Disconnection Message

Configuration

config/brandblock.json

{
  "blockedBrands": [                             // All brands that will be blocked
    "forge",
    "vanilla"
  ],
  "kickMsg": "This client brand is not allowed"  // The disconnection reason shown to the player, can be in Raw JSON text format
}

How it works?

When joining a server, during the configuration phase, both the server and client send a minecraft:brand custom payload packet (aka plugin message) containing the brand name. For unmodified clients and servers, this brand is always "vanilla." However, custom clients (such as Forge, Fabric, etc.) typically change this brand identifier.

This server-side mod listens when a brand payload is received and checks if it matches any blocked brands specified in the configuration file. If a blocked brand is detected, the player is disconnected from the server. However, this can be easily bypassed and modified clients may not to send this packet at all.

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