Home›Java›Mods›Message-api Mod (26.1.2, 1.21.1) – Colorful Server Messages in Every Language
Message-api Mod (26.1.2, 1.21.1) – Colorful Server Messages in Every Language
ModsJava

Message-api Mod (26.1.2, 1.21.1) – Colorful Server Messages in Every Language

Java mod listed for Minecraft 1.21–26.x. Downloads from the MC Java Mods app on Android.

by Moon

⬇ Download
Message-api Mod (26.1.2, 1.21.1) – Colorful Server Messages in Every Language — screenshot 1

Message-api Mod gives Fabric servers a simple way to send messages in many languages. This mod uses PlaceholderAPI to read text, so messages can have colors and placeholders. Players can edit every message in a plain JSON file.

Message-api Mod

Features:

How to Use:

  1. Add the repositories and the two dependencies to your build.gradle file. Replace [TAG] with the right 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]"))
}
  1. Create a messages folder in your resource folder.
  2. Add a JSON file named after the language code you want, like en_us.json.
  3. Write your messages in the file. Start each message id with your mod id to avoid clashes.
  4. Use the methods in LocalizedMessage to get your text, then send it to a player.
ServerPlayerEntity player;
player.sendMessageToClient(LocalizedMessage.localized("modid.some.message.id"));
  1. If you use Official Mojang Mappings, send it with player.sendSystemMessage(LocalizedMessage.localized("modid.some.message.id")) instead.
  2. To change a message as a player, edit ./config/<modid>/<languageid>.json. This changes the language file for the mod with that modid.

Message-api Mod Download Links

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.

File checked by MCModsHub

These come from our own check of the pack file, not from the source page.

Explore more