C-erva Core

Quick rating

C-erva Core

No reviews yet

Shared Fabric library providing text, registry, networking, inventory and permission utilities for AndrewImm mods.

API/Library
Mod Loaders
Fabric
Minecraft

Community voices

Reviews

Versions
Loading versions…
Match includes

Click once to include, again to exclude, again to clear

Rating Any
Any 0.5 1.0 1.5 2.0 2.5 3.0 3.5 4.0 4.5 5.0
Min
Max
Play Status
Reviews
Time Played
hrs+
Verified developers only
Has developer response
List view
Grid view
Compact view
Sort by
Date
Rating
Helpful
Unhelpful
Edited
Sort ascending
Delete this review?

This removes your review from the project. You can write a new review after.

Review submitted for moderation

Your review has been sent to moderators, who will check that it meets our guidelines before it appears publicly.

No reviews yet. Be the first to review this project!

Get it on

Available Platforms

Compatibility

Supported Environments

Dev Environment
Client Required
Server Required

About

Project Details

Type
Mod
License
MIT License
Authors

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.

Custom banner text
ModDex rating badge preview

Use HTML for any page that supports it, or Markdown for README files and Markdown-based descriptions.

Identifiers

Platform IDs

Modrinth ID

Resources

External Links

Source Issues Wiki Discord

About

Description

🧱 C-erva Core

Shared utility library for C-erva Fabric mods.

C-erva Core provides a set of common building blocks — text formatting, registration helpers, networking, inventory utilities, permissions, and more — so that individual mods stay small and don't reinvent the wheel.

You don't use this mod directly. Install it as a dependency when another mod (e.g. PhotoChat) requires it.


📦 What's inside

💬 CervaText

Prefixed chat messages with consistent styling.

CervaText.success("MyMod", "Item given!");   // [MyMod] Item given!  (green)
CervaText.warning("MyMod", "Low durability"); // [MyMod] Low durability  (yellow)
CervaText.error("MyMod", "Not found");        // [MyMod] Not found  (red)

🏷️ CervaRegistry

One-liner registration for identifiers, items, blocks, sounds, and entity types.

CervaRegistry.id("mymod", "ruby");
CervaRegistry.item("mymod", "ruby", new Item(settings));
CervaRegistry.sound("mymod", "ding");

🌐 CervaNetworking

Broadcast a custom payload to all players who have the mod, with an automatic text fallback for everyone else.

CervaNetworking.broadcastWithFallback(server, TYPE, payload, fallbackText);

🎒 CervaItems

Inventory helpers — give items, drop stacks, count slots, check for space.

CervaItems.give(player, stack);         // give or drop if full
CervaItems.hasSpace(player, stack);     // check before giving
CervaItems.countItem(player, Items.DIAMOND);

🔐 CervaPermissions

Simple permission checks for commands and players.

CervaPermissions.hasPermission(source, permission);

🌍 CervaWorld

World and sound utilities.

CervaWorld.playSound(world, pos, soundEvent);
CervaWorld.isServerWorld(world);

⏱️ CervaCooldowns

UUID + key based cooldown map with automatic expiry.

if (CervaCooldowns.isReady(player.getUuid(), "ability", 60)) {
    // 60-tick cooldown passed
}

🖼️ CervaTooltips (client)

Tooltip builder for item descriptions.

CervaTooltips.builder()
    .line("Rare artifact", Formatting.GOLD)
    .line("+5 attack", Formatting.GREEN)
    .build(tooltip);

📁 CervaPaths

Path parsing with quote and space support — useful for commands that accept file paths.

📂 CervaFilePicker (client)

Native OS file dialog via TinyFD — open/save dialogs with format filters.

🛡️ CervaSafe

Quick checks for client/server side, null world, null player — guards against common crashes.


📋 Requirements

  • Minecraft 1.21.11
  • Fabric Loader ≥ 0.19.3
  • Fabric API
  • Java 21+

⚙️ For mod developers

Add C-erva Core as a dependency in your build.gradle:

modImplementation "com.andrewimm:cerva_core:1.2.91"

And in your fabric.mod.json:

"depends": {
    "cerva_core": ">=1.2.91"
}

🔗 Mods using C-erva Core

  • PhotoChat — send images directly into Minecraft chat

Screenshots

Gallery

This project has no gallery images yet.

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

0
Ratings
0
Followers
0
In stacks

By the numbers

Statistics

<1,000
Downloads
Last Updated
CurseForge
Created
Last synced
When ModDex last fetched this project from CurseForge or Modrinth. Every project is re-checked on a schedule, and any project that ships a new file is synced automatically within hours of the release.
New file updates sync automatically
How syncing works