Craft CoreLIB Mod (26.3, 1.21.1) – Write One Codebase for Fabric
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.
![]()
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: pickCLIENT,SERVER, orCOMMONfor 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:
- Create a class like
ModBlocksand register a block withObjectRegistries.registerBlock. - Add an empty
init()method to that class. It must stay empty. - Call
ModBlocks.init()from your main setup. On Fabric, use the class that implementsModInitializer. On NeoForge, use the class with the@Modannotation. - On NeoForge, add an
onRegister(RegisterEvent event)method and callObjectRegistries.createAll("yourmoid", event.getRegistry())inside it. - On Fabric, add
ObjectRegistries.createAll("yourmoid")at the end of your init code insideModInitializer.
How to Install:
New to Minecraft? Follow our step-by-step guide to install Mods on your PC.View Guide
Craft CoreLIB Mod Download Links
0




















This post has no comments yet. Be the first — your comment will appear here.