Craft CoreLIB Mod simplifies registries for mod developers who build on Fabric and NeoForge. This mod gives you ready-made code for blocks, items, creative tabs, recipe types, recipe serializers, and menus. It also adds a config system, a custom config screen, and a network builder. You write less setup code and share the same code between loaders.

Craft CoreLIB Mod

Features:

  • Simple Registries: Register blocks, items, creative tabs, recipe types, recipe serializers, and menus with short, clean code.
  • Config System: Lets you build your own config categories with values, names, and descriptions.
  • Config Screen: Adds one easy-to-open screen that works with other mods too.
  • Network Builder: Handles custom packet creation, network creation, and network registration.
  • Shows only mods that have configs on the config screen. It is not a mod list menu.
  • Works with both Fabric and NeoForge, so you keep one style of code for each loader.
  • Includes screen events handling for GUI work.

Configuration:

  • ConfigType: pick CLIENT, SERVER, or COMMON for each config category.
  • ConfigCategory.create: makes a new category, and you can add as many categories as you want.
  • .name: sets a translatable name key from your language file.
  • .comment: sets a translatable description key from your language file.
  • ConfigManager.register: adds your category to the config screen under your mod id.

How to Use:

  1. Create a class like ModBlocks and register a block with ObjectRegistries.registerBlock.
  2. Add an empty init() method to that class. It must stay empty.
  3. Call ModBlocks.init() from your main setup. On Fabric, use the class that implements ModInitializer. On NeoForge, use the class with the @Mod annotation.
  4. On NeoForge, add an onRegister(RegisterEvent event) method and call ObjectRegistries.createAll("yourmoid", event.getRegistry()) inside it.
  5. On Fabric, add ObjectRegistries.createAll("yourmoid") at the end of your init code inside ModInitializer.

Craft CoreLIB Mod Download Links

Filter by

For Minecraft 26.3

For Minecraft 26.2

For Minecraft 26.1.2, 26.1.1, 26.1

For Minecraft 1.21.1, 1.21

Click to rate this post!
[Total: 0 Average: 0]