!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.
/courier command for operatorscouriernotifications.json on first server startAdd 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.
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-side only — do not call on a dedicated server
CourierClientAPI.showLocal(n);
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.
| Command | Description |
|---|---|
/courier send <id> | Broadcast a notification to all online players |
/courier reload | Reload couriernotifications.json from disk |
Requires permission level 2 (operator).

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.