ModMenu Badges Lib
This library provides Minecraft developers with a simple way to add custom badges to the mod menu. It allows creating unique visual labels for your modifications, making them more noticeable and informative for players.

How to Use
1. Adding Gradle Dependency
Add to your build.gradle or build.gradle.kts file:
repositories {
maven("https://api.modrinth.com/maven")
}
dependencies {
// Option 1: Include the library in your own jar file (additional ~5kb)
include(modImplementation("maven.modrinth", "modmenu-badges-lib", "<version>"))
// Option 2: Dependency on the library requiring manual installation by users
modImplementation("maven.modrinth", "modmenu-badges-lib", "<version>")
}
2. Recommended Dependency
In your fabric.mod.json file, specify:
"recommends": {
"modmenu-badges-lib": "*"
}
3. Creating Badges
Use the ModMenu Badges Generator and add the result to your fabric.mod.json:
Alternative color code generator: https://argb-int-calculator.netlify.app
{
...
"custom": {
"mcb": [
{
// Badge text
"name": "Example Badge",
// Fill color
"fillColor": -2003942227,
// Outline color
"outlineColor": -2003084874
},
{
// Next badge
}
]
},
...
}
Development Roadmap
- [ ] Search by badges
- [x] Online badge editor with real-time preview
Usage Example
Developer Tschipcraft uses this library to create the Data Pack badge in the Dynamic Lights modification.