Download ModMenu Badges Lib — Minecraft Mods — MetaMods
ModMenu Badges Lib

ModMenu Badges Lib

Active

Downloads

0

Last update

4 months ago

Versions

1.18.2 — 1.21.8
Client
Fabric
Decor
Libraries
Control
Utils

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.

In-Game Screenshot

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.

Project members
syorito-hatsuki

syorito-hatsuki

Developer

DuckyHatsu

DuckyHatsu

Created: 22 Apr 2023

ID: 441