Skip to content

CobbleLib

CobbleSuite Library By WhosLucid

NeoForge
Loaders
NeoForge
Downloads on Modrinth
427
Followers on Modrinth
1
version
1
Updated
February 7, 2026Feb 7
Published
in 2026
This is a library — other mods need it, and it adds nothing to the game by itself

At a glance

A library: other mods need it
Runs on NeoForge
For Minecraft 1.21.1–1.21.11
Server only — players don't need to install it
Latest version — 1.0.0 from February 7, 2026
Requires Cobblemon
Where it's needed
In gamenot neededOn serverrequired

Install on the server only; players don't need it

Game versions1.21.1–1.21.11

CobbleLib

A core utility library for Cobblemon NeoForge mods providing virtual economy (Cobbletokens), permissions, UI framework, and Pokemon helpers.

Requirements

  • Minecraft 1.21.1
  • NeoForge 21.1.90+
  • Cobblemon 1.7.2+
  • Java 21+

Features

Economy(Cobbletokens)

A simple virtual currency system with balances stored in economy.json:

  • Virtual balances tracked per player
  • Easy /cobbletokens command for players to manage their tokens
  • Admin commands for server operators
  • Transfer tokens between players

Permission System

Integrates with FTB Ranks for permission checks with automatic fallback to vanilla op levels.

PermissionApi.hasPermission(player, "permission.node", opLevel);

UI Components

GooeyLibs-based GUI utilities:

  • ConfirmMenu - Confirmation dialogs
  • PartyPcMenu - Party/PC Pokemon selection interface

Utilities

  • AdventureTranslator - Convert legacy color codes (&a, &l) and hex (&#RRGGBB) to Components
  • PlayerUtils - Chat, actionbar, and broadcast messaging
  • PokemonUtils - Placeholder replacement and stat helpers
  • ItemModel - ItemStack builder with display name, lore, NBT support

Commands

Token Commands (/cobbletokens)

CommandPermissionDescription
/cobbletokenscobblelib.tokensCheck your balance
/cobbletokens balance [player]cobblelib.tokens / cobblelib.tokens.adminCheck balance (admin for others)
`/cobbletokens send `cobblelib.tokensSend tokens to another player
`/cobbletokens pay `cobblelib.tokensAlias for send
`/cobbletokens give `cobblelib.tokens.adminGive tokens to a player
`/cobbletokens take `cobblelib.tokens.adminTake tokens from a player
`/cobbletokens set `cobblelib.tokens.adminSet a player's balance

Admin Commands (/cobblelib)

CommandPermissionDescription
/cobblelib reloadcobblelib.reloadReload all configs
/cobblelib infocobblelib.baseDisplay mod info

Configuration

Config files are located at config/cobblelib/

config.json

{
  "debug": false,
  "useDefault": true,
  "economySymbol": "Cobbletokens"
}

Language Files

Located at config/cobblelib/lang/en.json

API Usage

Economy API

import com.whoslucid.cobblelib.api.EconomyApi;

// Check balance
BigDecimal balance = EconomyApi.getBalance(playerUUID, null);

// Add money
EconomyApi.addMoney(playerUUID, BigDecimal.valueOf(100), null);

// Remove money
EconomyApi.removeMoney(playerUUID, BigDecimal.valueOf(50), null);

// Transfer between players
EconomyApi.transfer(fromUUID, toUUID, 100);

// Check and deduct
boolean success = EconomyApi.hasEnoughMoney(playerUUID, BigDecimal.valueOf(100), null, true);

// Get currency symbol
String symbol = EconomyApi.getSymbol(null);

Permission API

import com.whoslucid.cobblelib.api.PermissionApi;

// Check permission with op fallback
boolean allowed = PermissionApi.hasPermission(player, "your.permission", 2);

Color Codes

import com.whoslucid.cobblelib.util.AdventureTranslator;

Component text = AdventureTranslator.toComponent("&aGreen &lBold &#FF5555Custom Hex");

Building

./gradlew build

Output: build/libs/cobblelib-1.0.0.jar

License

All rights reserved.

FAQ

How to install CobbleLib?

Install NeoForge for your Minecraft version, download CobbleLib for the same version and loader, put the file into the mods folder and launch the game with the loader profile.

Which Minecraft versions does CobbleLib support?

CobbleLib has builds for Minecraft 1.21.1–1.21.11.

Is CobbleLib needed on the server?

Server only — players don't need to install it

License and source
Apache License 2.0free to use and share with credit to the author
Original — Modrinth↗Files unchanged, verified with SHA-512Is this your mod? For rights holders

The site uses cookies: the necessary ones for sign-in and the theme, plus the Yandex Metrica and LiveInternet visit counters — they show us how the site is used. We have no advertising cookies. More