CobbleLib
No reviews yet
CobbleSuite Library By WhosLucid
Provides a framework or library for other mods to use.
Neoforge is a fork of the Minecraft Forge available for versions 1.20.1+ of Minecraft. Many Forge mods are compatible with Neoforge and vice versa.
Community voices
Reviews
Click once to include, again to exclude, again to clear
No reviews yet. Be the first to review this project!
Get it on
Available Platforms
Compatibility
Supported Environments
Runs entirely on the server. Also works in singleplayer.
About
Project Details
For authors
Embed Badge
If you're the author of this project, you can embed a live badge anywhere that supports HTML or Markdown. It updates automatically whenever ratings change.
Use HTML for any page that supports it, or Markdown for README files and Markdown-based descriptions.
Identifiers
Platform IDs
Resources
External Links
About
Description
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
/cobbletokenscommand 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 dialogsPartyPcMenu- Party/PC Pokemon selection interface
Utilities
AdventureTranslator- Convert legacy color codes (&a,&l) and hex (&#RRGGBB) to ComponentsPlayerUtils- Chat, actionbar, and broadcast messagingPokemonUtils- Placeholder replacement and stat helpersItemModel- 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.
Screenshots
Gallery
Versions
Files
Relations
Project Relations
More like this
Similar Mods
Suggestions use data such as tags, dependencies, dependents, descriptions, titles, and more to rank how much they overlap with this mod.
On ModDex
Community snapshot
By the numbers
Statistics
Want to reach Minecraft players?
We're looking for a server hosting partner to feature here and other parts of the site. Interested? Send us a message!
Get in touchGet it on
Available Platforms
On ModDex
Community snapshot
By the numbers
Statistics
Resources