COWMODSКаталог модов

SolLib

Lets mods shine by bringing a constellation of (mostly) data utilities.

Автор: Lyof294,9 тыс.3обновлён 28 окт. 2026 г.
Библиотеки

Описание

Banner

This is a core library for Minecraft mods. Yes, we know, very original.

Believe it or not, copy-pasting a bunch of classes across every project is neither the most efficient nor the most stable idea.


Sol offers a whole constellation of common code for mod developpement.

Most of them orbit around data, multiloader and rendering helpers. A few key highlights being:

Easy config system.

Loaded as soon as you want it, easy to setup and accessible from other mods without the need for hard dependencies.

SolConfig config = MOD.createConfig("sollib/test", 1.0, builder -> builder
    .addObject("category", category -> category
        .comment("This is a comment")
        .add("hello", "world")
        .add("easyconfig", true)
    )
);

MOD.getLogger().info(config.get("category.hello", ""));
// world

Runtime data, controlled by code.

This lets you edit datapack files at runtime, potentially allowing to change recipes depending on config values, edit or disable compat recipes if their target mods are not loaded, automatically generate models for dynamically defined items, and much more.

SolRegistries.Data.RUNTIME.addJson(Identifier.of("minecraft", "recipe/dropper.json"), json -> {
    if (json == null) return null;
    if (!config.get("recipe.copper_dropper", false)) return null;
    
    json.getAsJsonObject("key")
            .getAsJsonObject("#")
            .addProperty("item", "minecraft:copper_ingot");
    return json;
});

Rendering helpers.

Centralized and loader agnostic. No need to make more mixins, either.

ResourceLocation TEXTURE = MOD.makeID("textures/models/sword_overlay.png");

SolClientRegistries.Render.ITEM.register(stack -> stack.is(Items.DIAMOND_SWORD) && stack.isEnchanted(),
        (stack, context, matrices, bufferSource, light, overlay) -> {
    matrices.scale(1.005f, 1.005f, 1.005f);
    matrices.translate(0, 0.995, 0.4975);
    matrices.mulPose(Axis.XP.rotationDegrees(180));

    MockItemRenderer.renderItem(matrices, bufferSource, light, TEXTURE);
});

Simplified registry.

That you can call in the common code, complete with all the syntax sugar you need: define models, burn time, stripping results and everything about a feature at the same time.

MOD.register(BlockHolder.class, "block_block", () -> new Block(BlockBehaviour.Properties.of()))
    .withItem(item -> item.withFuel(200)).dropsSelf()
    .withSlab().withStairs().withWall()
    .withFlammability(20, 5);

For the average user, making this page as flashy as we can won't really matter. It's only a library after all.

But if you are a developer and are curious about it, the best way to learn is to read the (wip) Wiki or join the Discord.

Последние версии

Все версии →
release

SolLib 2.1 (Fabric 1.21.1)

fabric-1.21.1-2.1
28 окт. 2026 г.43Minecraft: 1.21.1fabric
Скачать
release

SolLib 2.1 (Forge 1.20.1)

forge-1.20.1-2.1
26 окт. 2026 г.29Minecraft: 1.20.1forge
Скачать
Что нового
- Changed BlockHolder name property to setPrefix with further model provider tweaks - Changed logic of SWeatherCommandRegistry to provide user time value from /weather clear command
release

SolLib 2.1 (Fabric1.20.1)

fabric-1.20.1-2.1
26 окт. 2026 г.162Minecraft: 1.20.1fabric
Скачать
Что нового
- Changed BlockHolder name property to setPrefix with further model provider tweaks - Changed logic of SWeatherCommandRegistry to provide user time value from /weather clear command
release

SolLib 2.0 (Forge 1.20.1)

forge-1.20.1-2.0
23 сент. 2026 г.153Minecraft: 1.20.1forge
Скачать
release

SolLib 2.0 (Fabric 1.20.1)

fabric-1.20.1-2.0
23 сент. 2026 г.1,7 тыс.Minecraft: 1.20.1fabric
Скачать
release

SolLib 2.0 (Neo 1.21.1)

neo-1.21.1-2.0
23 сент. 2026 г.1,1 тыс.Minecraft: 1.21.1neoforge
Скачать
release

SolLib 2.0 (Fabric 1.21.1)

fabric-1.21.1-2.0
23 сент. 2026 г.824Minecraft: 1.21.1fabric
Скачать
release

SolLib 1.4 (Forge 1.20.1)

forge-1.20.1-1.4
2 сент. 2026 г.109Minecraft: 1.20.1forge
Скачать
Что нового
- added boss bar text modification registry - added boss event music registry
release

SolLib 1.4 (Fabric 1.20.1)

fabric-1.20.1-1.4
2 сент. 2026 г.849Minecraft: 1.20.1fabric
Скачать
Что нового
- added boss bar text modification registry - added boss event music registry
release

SolLib 1.3 (Neo 1.21.1)

neo-1.21.1-1.3
22 июл. 2026 г.173Minecraft: 1.21.1neoforge
Скачать