Back to mods
CraftCoreLIB project artwork

CurseForge · Minecraft mod

CraftCoreLIB

Cross-Platform library providing registgries and utils for mod developers.

Choose a version Pick your version below, then grab the matching file.

Quick answer

Which CraftCoreLIB release should I use?

Updated today
Latest stable file craftcorelib-fabric-1.21.1-1.0.2.jar
Game version 1.21.1
Loader Fabric

craftcorelib-fabric-1.21.1-1.0.2.jar targets 1.21.1 with Fabric. The project page does not say whether this file belongs on the client, dedicated server, or both. No extra mods listed for this file.

Where it goes

Is CraftCoreLIB required on the client, server, or both?

The project page does not say whether this file belongs on the client, dedicated server, or both.

Client Source doesn’t say
Dedicated server Source doesn’t say
Loader for this release Fabric
Required install it here Optional supported, not mandatory Not supported do not install here Source doesn’t say do not assume

The source does not explicitly classify this release as client-only or server-only.

What else does craftcorelib-fabric-1.21.1-1.0.2.jar need?

craftcorelib-fabric-1.21.1-1.0.2.jar. Change the file and its required mods may change too.

No extra mods listed for this file

This file does not list any required mods. Do not add a library just because a different file uses it.

This file does not list any required or optional mods.

Before you install it

Add CraftCoreLIB without breaking your instance.

Built for craftcorelib-fabric-1.21.1-1.0.2.jar. Pick another file and the loader, install side or required mods may change.

  1. 01

    Stick to this file

    Use craftcorelib-fabric-1.21.1-1.0.2.jar. It targets 1.21.1 with Fabric; another release may have different loader, side or dependency requirements.

  2. 02

    Bring the mods it needs

    This file does not list any required mods. Do not add a library just because a different file uses it.

  3. 03

    Put it on the correct side

    The project page does not say whether this file belongs on the client, dedicated server, or both.

  4. 04

    Pick the file you checked

    Use the “Get this file” button beside craftcorelib-fabric-1.21.1-1.0.2.jar. It opens that exact file at the source.

About this project

What does CraftCoreLIB add?

CraftCoreLIB

CraftCoreLib is a cross-plaftorm library built for developers for simplify registries on multiloader and many more features!

Registries

This lib provides core code for simple registries like blocks, items, creativetabs to recipetypes, recipe serializers menu and more coming!!

Usage Example

public class ModBlocks {

  // Simple Block registration
  public static final ObjectRegistries<Block> MY_BLOCK = ObjectRegistries.registerBlock(
  ResourceLocation.fromNamespaceAndPath("yourmoid", "my_block"),
    ()-> new Block(BlockBehaviour.Properties.of()));

    // It must stay empty, call it on related Init class(for fabric the one implementing ModInitializer for neoforge the class with the @Mod annotation)
    public static void init() {}

}

And initialize all our registris on our setup:

  • Fabric -> ModInitializer class
  • NeoForge -> @Mod annotation class
// Placeholder
public void init() {
  ModBlocks.init();

}

then if Neoforge do this:

private void onRegister(RegisterEvent event) {
  ObjectRegistries.createAll("yourmoid", event.getRegistry());
}

if Fabric inside ModInitializer, after all your init add this:

 ObjectRegistries.createAll("yourmoid");

Configs

CraftCoreLIB also provides a dedicated config system with a custom config screen compatible with other mods!!

Usage Example:

public class ModConfig {

    //You can choose 3 different config types: CLIENT, SERVER,COMMON
    public static final ConfigCategory MY_COOL_CATEGORY = ConfigCategory.create("my_cool_category", ConfigType.CLIENT)
            .title("my_cool_category");


    public static final ConfigValue<Boolean> MY_CONDITION = MY_COOL_CATEGORY
            .define("my_condition", false)
            //Translatable Name -> define the name inside your localisation default en_su.json
            .name("config.mymodid.mycondition")
            //Translatable Description -> define the description inside your localisation default en_su.json
            .comment("config.mymodid.mycondition.dec");

    // Accept countless categories
    public static void init() {
        ConfigManager.register("mymodid", MY_COOL_CATEGORY);
    }
}

Config Screen

It features a dedicated Config Screen easy to access.
It also fetch for all the available mod with config, IT'S NOT A MODLIST MENU, IT ONLY SHOWS MOD WITH CONFIGS!!

Network Builder

It features:

  • Custom Packet creation and handling
  • Network Creation
  • Network Registration

Check more on GitHub Info

Report issues on DiscordGitHub

My Other Projects

Project description from CurseForge.

Pick your setup

CraftCoreLIB by Minecraft version and loader

Choose the version and loader you play, then open the matching release.

2 available setups

Check the dependencies, then try the file in a copied instance before changing a world you care about.

Recent files

CraftCoreLIB versions and loaders

4 of 4 releases match

Looking for an older file? The official CurseForge project page is in Resources.