Skip to content

message-api

Fabric message api for translatable, configurable and colorful messages with placeholders

FabricQuilt
Loaders
FabricQuilt
Downloads on Modrinth
3.6K
Followers on Modrinth
3
versions
15
Updated
March 25, 2026Mar 25
Published
in 2025
This is a library — other mods need it, and it adds nothing to the game by itself

At a glance

A library: other mods need it
Runs on Fabric and Quilt
For Minecraft 1.21–26.1.2
Server only — players don't need to install it
Latest version — 0.3.5+26.1 from March 25, 2026
License MIT — free
Where it's needed
In gamenot neededOn serverrequired

Install on the server only; players don't need it

Game versions1.21–26.1.2

message-api

A simple server-side message API for Fabric. It allows for translatable messages, with text parsing using PlaceholderAPI , which can be customized with ease by end users.

Features

  • Special text parsing with PlaceholderAPI
  • Easy customizable in-game messages
  • Language localization support
  • Easy to integrate

Usage

Adding the dependency

To use message-api in your mod, add the following to your build.gradle file:

Message-api doesn't bundle placeholder-api, you have to bundle a compatible of it as well. Replace [TAG] with the respective versions.

repositories {
    maven { url "https://maven.nucleoid.xyz/" }
    maven { url "https://api.modrinth.com/maven" }
}

dependencies {
    include(modImplementation("maven.modrinth:message-api:[TAG]"))
    include(modImplementation("eu.pb4:placeholder-api:[TAG]"))
}

Adding messages

Create a messages folder in your resource folder. Create a JSON file with the language code you would like to add, like the testmod example. Add your message to the file (make sure to prefix the message id with your mod id, to avoid conflicts).

Creating messages

Use any of the provided methods in LocalizedMessage to get your text instance, which works like any other vanilla text instance!

ServerPlayerEntity player;
player.sendMessageToClient(LocalizedMessage.localized("modid.some.message.id"));
Official Mojang Mappings
ServerPlayer player;
player.sendSystemMessage(LocalizedMessage.localized("modid.some.message.id"));

User configuration

To change messages, edit the JSON file in `./config//.json. This will change the language file for the mod with the specified modid`.

Credits

Special thanks to PlaceholderAPI for providing the parsing functionality.

FAQ

How to install message-api?

Install Fabric for your Minecraft version, download message-api for the same version and loader, put the file into the mods folder and launch the game with the loader profile.

Which Minecraft versions does message-api support?

message-api has builds for Minecraft 1.21–26.1.2.

Is message-api needed on the server?

Server only — players don't need to install it

License and source
MIT Licensefree to use and share with credit to the author
Original — Modrinth↗Files unchanged, verified with SHA-512Is this your mod? For rights holders

The site uses cookies: the necessary ones for sign-in and the theme, plus the Yandex Metrica and LiveInternet visit counters — they show us how the site is used. We have no advertising cookies. More