Back to mods
bybystandardlib project artwork

CurseForge · Minecraft mod

bybystandardlib

BSL (Byby Standard Library) is a Fabric mod that adds APIs similar to Quilt, allowing developers to use Quilt-like features on Fabric. It improves compatibility, reduces code duplication, and serves as a shared backend for mods.

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

Quick answer

Which bybystandardlib release should I use?

Updated 1 year ago
Latest stable file bybystandardlibrary.jar
Game version 1.20.2, 1.21.2-Snapshot, 1.21
Loader Fabric

bybystandardlibrary.jar targets 1.20.2, 1.21.2-Snapshot, 1.21 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 bybystandardlib 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 bybystandardlibrary.jar need?

bybystandardlibrary.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 bybystandardlib without breaking your instance.

Built for bybystandardlibrary.jar. Pick another file and the loader, install side or required mods may change.

  1. 01

    Stick to this file

    Use bybystandardlibrary.jar. It targets 1.20.2, 1.21.2-Snapshot, 1.21 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 bybystandardlibrary.jar. It opens that exact file at the source.

About this project

What does bybystandardlib add?

bsl (byby standard library) - Fabric Helper Library Documentation

Overview

bsl is a lightweight helper library designed to supplement Fabric mod development by providing convenient APIs for UI buttons, keybindings, client tick events, resource reload handling, and JSON config management. It aims to help mod developers easily add features common to Fabric mods, enabling feature parity closer to Quilt and other mod loaders.


Integration

1. Using bsl as part of your mod source code

If you are developing your Fabric mod and want to use bsl directly within the same project (recommended for easy debugging and iteration):

  • Include the entire bsl source code inside your project's src/main/java directory under the bsl package.

  • In your mod code, import and use bsl normally:

import bsl.bsl;

public class MyModClient implements ClientModInitializer {  
@Override  
public void onInitializeClient() {  
// Register a button on a specific screen  
bsl.addButton(SomeScreen.class, "Click me!", 10, 10, 100, 20, () -> {  
System.out.println("Button clicked!");  
});

// Register client tick event  
bsl.onClientTick(() -> {  
// Your tick logic here  
});  
}  
}

No special build setup is needed beyond standard Fabric Loom configuration.  
2. Using bsl as a separate JAR dependency

If you want to distribute bsl as a standalone library for reuse in multiple projects or keep it modular:

Build bsl into a JAR file.

Add it to your mod’s libs folder or publish it to a Maven repository.

Add the dependency in your build.gradle file:

dependencies {  
modImplementation files('libs/bsl.jar')  
// or if published:  
// modImplementation 'com.byby:bsl:1.0.0'  
}

Import bsl in your mod code as usual:

import bsl.bsl;

Make sure the Fabric API and Minecraft dependencies are consistent across your mod and bsl builds.  
Features  
Screen Button Registry

Easily register buttons on any Minecraft screen.

bsl.addButton(SomeScreen.class, "Button Text", x, y, width, height, () -> {  
// Button pressed action  
});

Client Tick Events

Register callbacks that run every client tick.

bsl.onClientTick(() -> {  
// Tick logic  
});

Resource Reload Events

Register callbacks for resource reload events.

bsl.onResourceReload(manager -> {  
// Reload logic  
});

Keybinding API

Register and query keybindings simply.

KeyBinding myKey = bsl.registerKey("key.my\_mod.my\_key", GLFW.GLFW\_KEY\_K);

if (bsl.isKeyPressed(myKey)) {  
// Do something when key is pressed  
}

JSON Config API

Save/load JSON config files in the config folder.

MyConfig cfg = bsl.loadConfig("myconfig.json", MyConfig.class, new MyConfig());  
bsl.saveConfig("myconfig.json", cfg);

Important Notes

bsl depends on Fabric API and Minecraft classes and must be compiled with Fabric Loom and appropriate mappings.

When including bsl source in your mod project, make sure your IDE and build system recognize the package structure correctly.

When building bsl as a JAR, ensure that the target Minecraft and Fabric API versions match those of your mod to avoid runtime incompatibilities.

Some @Shadow warnings during compilation may appear if the target methods or fields are missing in the Minecraft version used; these usually do not prevent the mod from working but should be addressed for clean builds.

Example: Basic usage in a mod client initializer

package mymod;

import bsl.bsl;  
import net.fabricmc.api.ClientModInitializer;  
import net.minecraft.client.gui.screen.TitleScreen;

public class MyModClient implements ClientModInitializer {  
@Override  
public void onInitializeClient() {  
bsl.addButton(TitleScreen.class, "Hello bsl!", 10, 10, 100, 20, () -> {  
System.out.println("Button clicked!");  
});  
}  
}

Project description from CurseForge.

Pick your setup

bybystandardlib by Minecraft version and loader

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

27 available setups

Showing the newest 12 of 27 game versions. Older files are in the list below.

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

Recent files

bybystandardlib versions and loaders

1 of 1 releases match

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