NilKit API

⭐ — (2 endorsements) 📥 336 downloads 📌 v4.1.0 📅 3/30/2026
🟡 Updated this year

By TamKungZ_ · library

⬇ Download Mod Source: Modrinth ↗ 📅 Updated: 8/6/2026 📅 Created: 3/30/2026
⚠️ Install Order · 2 steps
1🛠️ Forge — Minecraft Forge (mod loader) Download ↗
2🛠️ Fabric — Fabric Loader Download ↗

Install in this order, then this mod last — most mods fail to load without their framework and dependencies in place.

🔍 Analysis

  • 🏆 #4 of 10 library mods in this game by downloads

📋 About This Mod

✅ Lightweight event bus
✅ Cancellable events
✅ Listener priorities
✅ `premain` / `hijack` lifecycle helpers
✅ Typed and annotation-based listeners

<h1> <img src="https://raw.githubusercontent.com/NilKitAPI/NilKit-API/refs/heads/main/src/main/resources/assets/nilkit/icon.svg" width="40" alt="" aria-hidden="true"> NilKit API </h1> **An independent utility API and developer toolkit for mods built with NilLoader.** <blockquote> <p><strong>Important</strong></p> <p><strong>NilKit is not part of the official NilLoader project and is not required to use NilLoader.</strong></p> <p>NilLoader is maintained separately at:<br> <a href="https://git.sleeping.town/Nil/NilLoader">https://git.sleeping.town/Nil/NilLoader</a></p> </blockquote> NilKit provides reusable APIs and tooling for legacy Minecraft mod development, with a focus on reducing boilerplate around events, reflection, mappings, metadata, networking, and development utilities. NilKit `4.1.0` targets Java 8 bytecode and does not require a hard runtime link to a specific Minecraft JAR for its core APIs. Minecraft-specific functionality remains dependent on the mappings and structure of the target game version. ## Features ### Events and lifecycle - Lightweight event bus - Cancellable events - Listener priorities - `premain` / `hijack` lifecycle helpers - Typed and annotation-based listeners ### Reflection and legacy Minecraft tooling - Reflection helpers for version-dependent Minecraft code - SRG/CSRG mapping utilities - Mapping inspection, reversal, chaining, and lookup - Integration with the external `MinecraftRemapping` mapping repository during development ### KDL NilKit includes a general-purpose KDL parser and writer and can use KDL for richer project/mod metadata. > *KDL support is optional. NilKit does not require NilLoader mods to use KDL, and standard NilLoader metadata remains fully supported.* Example: ```kdl nilmod { name "My Mod" description "Example mod" authors "Author" version "1.0.0" } entrypoints { premain "com.example.MyPremain" hijack "com.example.MyHijack" } nilkit { requires "nilloader" "nilkit" load_after "nilkit" icon "assets/mymod/icon.png" modurl "https://modrinth.com/mod/my-mod" sourceurl "https://github.com/example/my-mod" license "MIT" credits "Author" } ``` ### Networking * Java NIO client/server utilities * Packet registry and codecs * Optional Minecraft-facing network helpers ### Developer toolbox The optional `-all.jar` also bundles several developer libraries without relocating their public packages: * Byte Buddy * GEB * ClassGraph * SnakeYAML The normal NilKit artifact does not require these libraries at runtime. ## Gradle ```gradle repositories { maven { url = uri("https://repo.tamkungz.me") } } dependencies { implementation "me.tamkungz.nilkit:nilkit:4.1.0" } ``` ## Documentation Full documentation and development information are available in the GitHub repository: (https://github.com/NilKitAPI/NilKit-API/tree/main/docs) ## NilLoader NilKit is designed to complement NilLoader, not replace it. NilLoader itself, its loading lifecycle, and its upstream development remain separate from NilKit. * (https://git.sleeping.town/Nil/NilLoader) * (https://github.com/exaskye/NilLoader) ## License NilKit is licensed under **LGPL-3.0-or-later**.

NilKit API

An independent utility API and developer toolkit for mods built with NilLoader.

Important

NilKit is not part of the official NilLoader project and is not required to use NilLoader.

NilLoader is maintained separately at:

https://git.sleeping.town/Nil/NilLoader

NilKit provides reusable APIs and tooling for legacy Minecraft mod development, with a focus on reducing boilerplate around events, reflection, mappings, metadata, networking, and development utilities.

NilKit `4. 1. 0` targets Java 8 bytecode and does not require a hard runtime link to a specific Minecraft JAR for its core APIs. Minecraft-specific functionality remains dependent on the mappings and structure of the target game version.

## Features

### Events and lifecycle

  • Lightweight event bus
  • Cancellable events
  • Listener priorities
  • `premain` / `hijack` lifecycle helpers
  • Typed and annotation-based listeners

### Reflection and legacy Minecraft tooling

  • Reflection helpers for version-dependent Minecraft code
  • SRG/CSRG mapping utilities
  • Mapping inspection, reversal, chaining, and lookup
  • Integration with the external `MinecraftRemapping` mapping repository during development

NilKit includes a general-purpose KDL parser and writer and can use KDL for richer project/mod metadata.

> KDL support is optional. NilKit does not require NilLoader mods to use KDL, and standard NilLoader metadata remains fully supported.

```kdl nilmod { name "My Mod" description "Example mod" authors "Author" version "1. 0. 0" }

entrypoints { premain "com.example. MyPremain" hijack "com.example. MyHijack" }

nilkit { requires "nilloader" "nilkit" load_after "nilkit"

icon "assets/mymod/icon.png" modurl "https://modrinth.com/mod/my-mod" sourceurl "https://github.com/example/my-mod"

license "MIT" credits "Author" } ```

### Networking

Java NIO client/server utilities Packet registry and codecs Optional Minecraft-facing network helpers

### Developer toolbox

The optional `-all.jar` also bundles several developer libraries without relocating their public packages:

Byte Buddy GEB ClassGraph SnakeYAML

The normal NilKit artifact does not require these libraries at runtime.

```gradle repositories { maven { url = uri("https://repo.tamkungz.me") } }

dependencies { implementation "me.tamkungz.nilkit:nilkit:4. 1. 0" } ```

## Documentation

Full documentation and development information are available in the GitHub repository:

(https://github.com/NilKitAPI/NilKit-API/tree/main/docs)

## NilLoader

NilKit is designed to complement NilLoader, not replace it.

NilLoader itself, its loading lifecycle, and its upstream development remain separate from NilKit.

(https://git.sleeping.town/Nil/NilLoader) * (https://github.com/exaskye/NilLoader)

NilKit is licensed under LGPL-3. 0-or-later.

🤖 AI-enhanced — based on mod data

📊 Mod Details

Game
Minecraft Mods
Author
TamKungZ_
Version
4.1.0
Downloads
336
Endorsements
2
Category
library
Created
3/30/2026
Updated
8/6/2026
Game Versions
1.2.1, 1.2.2, 1.2.3, 1.2.4, 1.2.5
Tags
library, utility

🔧 How to Install Minecraft Mods Mods

Download from Modrinth. Use Prism Launcher or drop into your mods folder.

📖 Full step-by-step install guide for Minecraft Mods →

Visit the official mod page for specific installation instructions for this mod.

🎮 Need cheat codes or console commands? Check ur gaming wiki for Minecraft Mods commands, item IDs, and more.

❓ Frequently Asked Questions

Which Minecraft Mods versions does NilKit API support?

The author lists 1.2.1, 1.2.2, 1.2.3, 1.2.4, 1.2.5, 1.3.1. Other versions may work but are untested by the author.

What is the latest version of NilKit API?

Version 4.1.0, published 2026-08-06 with 336 downloads recorded at the source.

Keep browsing — more Minecraft Mods mods await

📋 All Minecraft Mods Mods 🏆 Top 25 📂 More library 👤 More by TamKungZ_ 🔎 Similar Mods 🌐 Best library (All Games) 🔀 Check Compatibility ⚖️ Compare Mods 🆕 New Mods