Back to mods
NightLib project artwork

CurseForge · Minecraft mod

NightLib

This mod is a library designed to log mod performance!

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

Quick answer

Which NightLib release matches Fabric?

Updated 23 days ago
Best match for your filters NightLib-Fabric-26.1.2-1.3.0
Game version 26.1.2
Loader Fabric

NightLib-Fabric-26.1.2-1.3.0 targets 26.1.2 with Fabric. The project page does not say whether this file belongs on the client, dedicated server, or both. All 2 required mods have matching files.

Where it goes

Is NightLib 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 NightLib-Fabric-26.1.2-1.3.0 need?

NightLib-Fabric-26.1.2-1.3.0 on Fabric. Every mod below is checked against that same setup.

All 2 required mods have matching files

Install Architectury API, Fabric API first. We found matching files for this game-version and loader setup. 1 comes through another mod in the chain.

1 listed on this file 1 pulled in by one of those mods
Architectury API Needed by NightLib-Fabric-26.1.2-1.3.0
required
Matching file found Matched file: [Fabric 26.1.2] v20.1.17
Fabric API Needed by Architectury API
pulled in
Matching file found Matched file: [26.1.2] Fabric API 0.155.3+26.1.2

1 extra mod was pulled in by another dependency. Indented rows show who needs each one. We only count dependency files that match this setup. A file for another loader does not fill the gap.

Before you install it

Add NightLib without breaking your instance.

Built for NightLib-Fabric-26.1.2-1.3.0 on Fabric. Pick another file and the loader, install side or required mods may change.

  1. 01

    Stick to this file

    Use NightLib-Fabric-26.1.2-1.3.0. It targets 26.1.2 with Fabric; another release may have different loader, side or dependency requirements.

  2. 02

    Bring the mods it needs

    Install Architectury API, Fabric API first. We found matching files for this game-version and loader setup. 1 comes through another mod in the chain.

  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 NightLib-Fabric-26.1.2-1.3.0. It opens that exact file at the source.

About this project

What does NightLib add?

We can use this library to track mod performance.

The mod also features a system that recognizes your mods, so you can use /nightlib mods and it will display all mods using the API.
You can also direct people to your forum or Discord in case of issues with the mod or high RAM usage using /nightlib info <mod>

Why Use NightLib?

NightLib provides a library that allows you to monitor your mod's performance and identify potential issues! Plus, it's incredibly easy to use.

Implement the Library in your mod

1 - Build.gradle:

repositories {

maven { url = "https://nightsult.github.io/NightLib/maven" }

}

dependencies {

// Format: net.night:NightLib-<loader>-<Minecraft version>:1.3.0

modImplementation "net.night:NightLib-fabric-1.20.1:1.3.0"

}

2 - Register your mod

import net.night.nightlib.api.ModProfiler;
import net.night.nightlib.api.NightlibAPI;

public final class MyMod {

public static final String MOD_ID = "mymod";

public static ModProfiler PROFILER;

public static void init() {

// Optional: support link shown in /nightlib info

NightlibAPI.register(MOD_ID, "https://discord.gg/your-invite");

// Registers the mod (if it isn't already) and returns its profiler

PROFILER = NightlibAPI.getProfiler(MOD_ID);

}

}

3 - Reporting performance

// Option A: try-with-resources (recommended)

try (var ignored = PROFILER.start("tick")) {

doTickWork();

}

// Option B: pass a Runnable

PROFILER.time("network", MyMod::processPackets);

// Option C: measure it yourself, in nanoseconds

long start = System.nanoTime();

generateStructure();

PROFILER.record("world_gen", System.nanoTime() - start);

4 - Report Errors

try {

generateStructure();

} catch (Exception e) {

PROFILER.reportError("world_gen", e);

LOGGER.error("Failed to generate structure", e);

}

Do you need help? Join our Discord!

Project description from CurseForge.

Pick your setup

NightLib by Minecraft version and loader

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

6 available setups

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

Recent files

NightLib versions and loaders

3 of 6 releases match
Clear filters

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