ModsFinder

npc-lib

by derklaro

npc-lib is a Fabric library for server owners and developers that spawns and controls non-player characters on Minecraft Java Edition servers.

FabricServer-side onlyMIT LicenseOpen source1.21.4 – 26.3

What it does

The library is built for Java Edition servers and can be extended by other mods. Developers can create characters from their own code, and the library handles their attributes, poses, skin layers and equipment. Fabric API is required, and the library runs on the server alone, so players join without installing anything.

Its feature set covers skins loaded either statically or dynamically, interaction hooks for interact and attack events, and a controller layer with automatic looking, player imitation and spawning rules. A LabyMod extension adds emotes and sprays for clients that use LabyMod. Folia works through ProtocolLib and PacketEvents on Bukkit forks, while full Minestom support is limited to the latest version only.

The project is published under the MIT License and is open source, with source code, an issue tracker and a wiki available. Builds cover 1.21.4 – 26.3 across 10 release versions, and the latest Fabric file is 3.0.0-beta.18 for 26.3, on the beta channel.

Key features

  1. Extendable base

    A simple, extendable base for creating characters on Java Edition servers, meant for other mods to build on.

  2. Skins and poses

    Characters support skins loaded statically or dynamically, plus attributes, status, pose and skin layers.

  3. Equipment and interaction

    Characters can hold items in the main hand, off hand and armor slots, and respond to interact and attack events.

  4. Controller behaviors

    Automatic looking, player imitation and spawning rules can be attached to characters through a controller.

  5. LabyMod emotes

    An extension sends emotes and sprays to players who run LabyMod, when the server has the extension enabled.

Compatibility

Latest build for each game version and loader.

No stable releases
Every published file is a beta or alpha build.
26.x2 of 2 versions with builds
26.33.0.0-beta.18
26.23.0.0-beta.17
1.21.x8 of 8 versions with builds
1.21.113.0.0-beta.16
1.21.103.0.0-beta.15
1.21.93.0.0-beta.15
1.21.83.0.0-beta13
1.21.73.0.0-beta13
1.21.63.0.0-beta13
1.21.53.0.0-beta12
1.21.43.0.0-beta11
ReleaseBetaAlphaNot available

Only full game releases are shown. This mod publishes no snapshot builds.

Requirements

Dependencies declared by the latest file for each loader.

Required 1

Fabric APILightweight and modular API providing common hooks and intercompatibility measures utilized by mods using the Fabric toolchain.
Required

Use cases

Server guides

Server owners place guides, shopkeepers or greeters that look at players as they approach.

Mod integration

Developers build quest givers or companions on top of the library without writing packet code themselves.

Who it’s for: Server owners running Fabric and developers building mods that need spawned characters. Players on a server running npc-lib do not install anything.

Questions

Does npc-lib need Fabric API?

Yes. Fabric API is a required dependency, so it must be installed next to npc-lib on the server.

Do players have to install npc-lib?

No. Only the server needs it, and players join without installing anything.

Which game versions are covered?

Files exist for 1.21.4 – 26.3, with 10 release versions in total. The latest Fabric file is 3.0.0-beta.18 for 26.3.

Can Folia servers run npc-lib?

Folia is supported on Bukkit forks through ProtocolLib and PacketEvents. Full Minestom support covers only the latest version.

In the catalog

npc-lib is one of 3,514 Library mods on ModsFinder, and one of 2,348 Library mods for Fabric. 8,071 mods support Minecraft 26.3.

Similar mods

What the author says

More detailed documentation, such as instructions for installation and use, can be found on our GitHub page
derklaro, on the Modrinth page

Official listing

Owner
derklaro
Published
2025-01-29
Updated on Modrinth
2026-10-03
Facts verified
2026-10-15

Tags