promotional bannermobile promotional banner

CourierAPI

CourierAPI is a Fabric mod library that lets any mod send animated HUD notification cards to players — via the Java API, JSON files, or in-game commands. Supports server-to-client broadcasting and client-side local display.
item image
item image

Description

CourierAPI Logo.

CourierAPI is a Fabric mod library that lets any mod send animated HUD notification cards to players — via the Java API, JSON files, or in-game commands. Supports server-to-client broadcasting and client-side local display.


Features

  • Animated slide-in / slide-out cards in the top-right corner of the HUD
  • Fully customizable colors — title, description, background, and border accent (ARGB)
  • Configurable display duration per notification
  • Up to 4 notifications visible at once; extras queue automatically
  • Description wraps to a second line when text is too long
  • Server → Client — send notifications via Java API or JSON files, no coding required
  • Client-only — display notifications locally from another client mod without a server
  • Drop-in /courier command for operators
  • Auto-creates a sample couriernotifications.json on first server start

For Developers

Add to your gradle.properties:

courierapi_version=0.1

Then in build.gradle:

repositories {
    maven {
        name = "LunazStudios"
        url  = "https://maven.lunazstudios.com/releases"
    }
}

dependencies {
    modImplementation "com.lunazstudios:CourierAPI:${project.minecraft_version}-${project.courierapi_version}"
}

Full documentation and API usage examples are available on the GitHub repository.


Server API

Notification n = Notification.builder("Event Started!", "Head to the arena.")
        .durationSeconds(6)
        .borderColor(0xFFFF4444)
        .build();

CourierAPI.send(player, n);        // single player
CourierAPI.broadcast(server, n);   // all online players

Client API

// Client-side only — do not call on a dedicated server
CourierClientAPI.showLocal(n);

JSON — No Coding Required

Place couriernotifications.json in your server root to define reusable notifications:

{
  "restart_warning": {
    "title": "Server Restart",
    "description": "The server restarts in 5 minutes.",
    "duration": 8,
    "border_color": "#FF5555"
  }
}

Trigger them in-game with /courier send restart_warning, or drop entries into couriernotifications_queue.json to dispatch from external scripts or RCON — no restart needed.


Commands

Command Description
/courier send <id> Broadcast a notification to all online players
/courier reload Reload couriernotifications.json from disk

Requires permission level 2 (operator).

The CourierAPI Team

profile avatar
  • 7
    Followers
  • 6
    Projects
  • 6.0M
    Downloads

More from LunazStudiosView all

  • Cobblemon: Virtual Loot project image

    Cobblemon: Virtual Loot

    • 75
    • Mods

    Adds a Virtual Pasture that generates loot based on Cobblemon Loot Tables.

    • 75
    • June 27, 2026
    • Mods
    • +2
  • CobbleFurnies project image

    CobbleFurnies

    • 5.7M
    • Mods

    CobbleFurnies is here to bring your creations to life with beautifully crafted, Cobblemon-inspired furniture that blends seamlessly into your Minecraft world!

    • 5.7M
    • April 22, 2026
    • Mods
  • Framed-Kit project image

    Framed-Kit

    • 264
    • Mods

    Frame is a creative utility mod designed to enhance visual control and presentation in Minecraft.

    • 264
    • March 5, 2026
    • Mods
    • +1
  • Inspectability project image

    Inspectability

    • 293.7K
    • Mods

    A mod that allows players to inspect item models in-game, providing a closer and detailed view of the item's appearance.

    • 293.7K
    • July 24, 2025
    • Mods
    • +1
  • Cobblemon: Virtual Loot project image

    Cobblemon: Virtual Loot

    • 75
    • Mods

    Adds a Virtual Pasture that generates loot based on Cobblemon Loot Tables.

    • 75
    • June 27, 2026
    • Mods
    • +2
  • CobbleFurnies project image

    CobbleFurnies

    • 5.7M
    • Mods

    CobbleFurnies is here to bring your creations to life with beautifully crafted, Cobblemon-inspired furniture that blends seamlessly into your Minecraft world!

    • 5.7M
    • April 22, 2026
    • Mods
  • Framed-Kit project image

    Framed-Kit

    • 264
    • Mods

    Frame is a creative utility mod designed to enhance visual control and presentation in Minecraft.

    • 264
    • March 5, 2026
    • Mods
    • +1
  • Inspectability project image

    Inspectability

    • 293.7K
    • Mods

    A mod that allows players to inspect item models in-game, providing a closer and detailed view of the item's appearance.

    • 293.7K
    • July 24, 2025
    • Mods
    • +1