Back to mods

Modrinth · Minecraft mod

message-api

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

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

Quick answer

Which message-api release matches 1.21.11 Quilt?

Updated 7 months ago
Best match for your filters 0.3.5+1.21.11
Game version 1.21.11
Loader Fabric, Quilt

message-api 0.3.5+1.21.11 targets 1.21.11 with Fabric, Quilt. 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 message-api 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, Quilt
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 message-api 0.3.5+1.21.11 need?

0.3.5+1.21.11 on 1.21.11 Quilt. Every mod below is checked against that same setup.

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 message-api without breaking your instance.

Built for message-api 0.3.5+1.21.11 on 1.21.11 Quilt. Pick another file and the loader, install side or required mods may change.

  1. 01

    Stick to this file

    Use 0.3.5+1.21.11. It targets 1.21.11 with Fabric, Quilt; 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 0.3.5+1.21.11. It opens that exact file at the source.

About this project

What does message-api add?

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/<modid>/<languageid>.json. This will change the language file for
the mod with the specified modid.

Credits

Special thanks to PlaceholderAPI for providing the parsing functionality.

Project description from Modrinth.

Pick your setup

message-api by Minecraft version and loader

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

34 available setups

Showing the newest 12 of 17 game versions. Older files are in the list below.

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

Recent files

message-api versions and loaders

2 of 15 releases match
Clear filters

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