N3rdy-lib
by N3rdyR0b1n
N3rdy-lib is a Fabric library for mod developers, with code objects for NBT data, left-click item handling, and inventory attribute modifiers.
What it does
The library gives mod authors ready-made code objects to reuse in future projects. Its NbtObjects classes let a mod work with NBT compounds directly, since each object implements the NbtElement interface. Data handling is already written, but synchronising an NbtCompound between client and server is still left to the author.
A further interface lets items respond to a left-click held down on the mouse button, and a method reports that held state. Attribute modifiers can be granted to items anywhere in the general inventory, which suits charms, amulets and custom equipment slots that should update once rather than on every tick. The update runs every 5 ticks to keep the cost low. Client and server methods are both provided, and the shared method should be used unless a specific one is stated.
The mod is published for Fabric only, for the game versions 1.20.1, 1.20.2 and 1.20.3, with 1.0.1 for 1.20.3 as the latest file from 2024-11-05. A server running it needs every connecting player to have it too. It is released under the Mozilla Public License 2.0 and is open source. Source code and an issue tracker are public.
Key features
Reusable NBT objects
NbtObjects classes accept NBT compounds directly, because each one implements the NbtElement interface.
Held left-click items
An item interface runs a function while the player holds the left mouse button, and a method reports the held state.
Inventory attribute modifiers
Items anywhere in the general inventory can grant attribute modifiers, suitable for charms and amulets.
Periodic update rate
Attribute updates run every 5 ticks, which keeps custom equipment logic from firing on each tick.
Compatibility
Latest build for each game version and loader.
Only full game releases are shown. This mod publishes no snapshot builds.
How it compares
Transit API is a Fabric library for 1.16.1 – 1.20.2, released under the MIT License and open source, and it runs on client and server. QsLib is also a Fabric library, for 1.20.1 – 1.20.6, under the MIT License and open source, with client and server support. Attribute Base Modifier covers Fabric, Forge and NeoForge for 1.20 – 1.21.8, is open source under the MIT License, and is server-side only, so clients need nothing.
| Mod | Loaders | Game versions | Environment | Updated |
|---|---|---|---|---|
| N3rdy-lib | Fabric | 1.20.1 – 1.20.3 | Client and server | 2024-11-05 |
| Transit API | Fabric | 1.16.1 – 1.20.2 | Client and server | 2023-11-18 |
| QsLib | Fabric | 1.20.1 – 1.20.6 | Client and server | 2026-05-11 |
| Attribute Base Modifier | Fabric, Forge and NeoForge | 1.20 – 1.21.8 | Server-side only | 2025-09-15 |
Questions
Does N3rdy-lib need to be installed on the server?
Which game versions does N3rdy-lib support?
Can Jaidev Library replace N3rdy-lib?
In the catalog
N3rdy-lib is one of 3,514 Library mods on ModsFinder, and one of 2,348 Library mods for Fabric. 10,115 mods support Minecraft 1.20.3.
More from N3rdyR0b1n
Similar mods
What the author says
A class for NbtObjects, NbtObjects are objects that can be directly put on nbt compounds due to them implementing the NbtElement interface. All data handling is already done except client to server synchronisation, which can be done by updating the nbtcompound. An interface for left click items. Items that exectute a…
Official listing
- Modrinth page
- modrinth.com/mod/n3rdy-lib
- Owner
- N3rdyR0b1n
- Published
- 2024-09-30
- Updated on Modrinth
- 2024-11-05
- Facts verified
- 2026-10-15