CobbleLib

CobbleLib

CobbleSuite Library By WhosLucid

by
177 Downloads
neoforgelibrary
Rent Server with this Mod

About this Mod

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)

Command Permission Description
/cobbletokens cobblelib.tokens Check your balance
/cobbletokens balance [player] cobblelib.tokens / cobblelib.tokens.admin Check balance (admin for others)
/cobbletokens send <player> <amount> cobblelib.tokens Send tokens to another player
/cobbletokens pay <player> <amount> cobblelib.tokens Alias for send
/cobbletokens give <player> <amount> cobblelib.tokens.admin Give tokens to a player
/cobbletokens take <player> <amount> cobblelib.tokens.admin Take tokens from a player
/cobbletokens set <player> <amount> cobblelib.tokens.admin Set a player's balance

Admin Commands (/cobblelib)

Command Permission Description
/cobblelib reload cobblelib.reload Reload all configs
/cobblelib info cobblelib.base Display 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.

Available Versions

CobbleLib 1.0.0release
MC 1.21.1, 1.21.2, 1.21.3, 1.21.4, 1.21.5, 1.21.6, 1.21.7, 1.21.8, 1.21.9, 1.21.10, 1.21.11neoforge
February 7, 2026

How to Install CobbleLib on Your Server

1

Order Server

Order a Minecraft Java server with at least 3 GB RAM (4 GB recommended).

2

Set neoforge Loader

In the panel under "Egg", select the neoforge loader and matching Minecraft version (1.21.11).

3

Install Mod

Open the mod browser in the dashboard and search for "CobbleLib". Click "Install" – done! Alternatively, upload the .jar via SFTP to the /mods folder.

Compatibility

Mod Loaders

neoforge

Minecraft Versions

1.21.11, 1.21.10, 1.21.9 (+8 more)

Server-side

Required

Recommended RAM

4 GB(min. 3 GB)

Frequently Asked Questions

CobbleLib server crashes on startup – what to do?

Most common cause: wrong neoforge version or insufficient RAM. Check the server log (latest.log) for "OutOfMemoryError" or "Mixin" errors. With Mado Hosting: ensure at least 3 GB RAM is allocated and the loader matches the mod version (1.21.11). You can switch loaders with one click in the panel.

Is CobbleLib compatible with neoforge?

CobbleLib officially supports neoforge for Minecraft 1.21.11, 1.21.10, 1.21.9. The Mado dashboard automatically detects incompatible loader combinations.

Server lagging with CobbleLib – how to optimize performance?

Recommended RAM: 4 GB (per 8 players). Use /spark profiler to check if CobbleLib consumes the most tick time. Common fixes: reduce server view-distance to 8-10, install "performant" or "starlight" as supplementary mods on Forge. With Mado Hosting, your server runs on NVMe SSDs with dedicated CPU cores for minimal latency.

Rent Modded Server

Install CobbleLib with just one click on your server.

Recommended RAM
4 GBab €8/mo
Min. 3 GB | +1 GB pro 8 Spieler
Create Server Now
1-Click Mod Install
NVMe SSD Storage
DDoS Protection included

Details

License
Apache License 2.0
Server-side
Required

Supported Versions

1.21.111.21.101.21.91.21.81.21.71.21.61.21.51.21.41.21.31.21.2+1 more