npc2
by oofman124
npc2 is an experimental Fabric mod that drops autonomous survival NPCs into a world, letting players spawn and observe them from the Creative inventory.
What it does
Each NPC runs a weighted survival plan and keeps persistent memories of what it has done. Choices are made by a node-based behavior graph that covers gathering, crafting, combat, storage and movement, while the NPCs rely on vanilla mob physics. Installed on a client and a server, the mod can be used in singleplayer worlds, LAN games and multiplayer servers.
To spawn one, go to the Spawn Eggs tab in the vanilla Creative inventory and place the Survivor NPC Spawn Egg on flat ground that is open to the sky. Players with permission can also spawn one with a command. Entering a world shows a formatted quick-start message in chat that contains the spawn command and the debug controls, along with a link to the issue tracker. The NPCs move slowly across floating water.
Fabric API and Fabric Language Kotlin are both required, and their dependencies must be installed on the server and on every player's client. Files exist for 26.2 and 26.3, with 0.3.1-alpha+26.3 the latest file for 26.3, released under the MIT License. The source code is public, and the mod is open source.
Key features
Weighted survival planning
A weighted plan chooses what each NPC does next, and the NPC keeps persistent memories between decisions.
Node-based behavior graph
Decisions are made through a graph of behavior nodes covering gathering, crafting, combat, storage and movement.
Debug panel
Pressing X pins the selected NPC and expands a panel; pressing X again unpins it. F8 toggles debugging, including the panel, a glowing outline and path visualization.
Expanded NPC information
The expanded panel shows an NPC's current decisions, movement path, state, resource requirements and equipment, while the inventory holds other AI information.
Gallery
Compatibility
Latest build for each game version and loader.
Only full game releases are shown. This mod publishes no snapshot builds.
Requirements
Dependencies declared by the latest file for each loader.
Required 2
How it compares
LunaNPC is a Fabric mod for 26.2 with a client and server environment, released under All rights reserved, so it is not open source. SecondBrain is open source under the GNU Lesser General Public License v3.0 only, covers 1.20.1 – 1.21.11 on Fabric, and is server required with client optional. Old F3 Debug Screen is a client-side only Fabric mod for 26.1 – 26.1.2 under the MIT License and is open source; it is a debug overlay rather than an NPC mod.
| Mod | Loaders | Game versions | Environment | Updated |
|---|---|---|---|---|
| npc2 | Fabric | 26.2 – 26.3 | Client and server | 2026-09-19 |
| LunaNPC | Fabric | 26.2 | Client and server | 2026-07-23 |
| SecondBrain | Fabric | 1.20.1 – 1.21.11 | Server required, client optional | 2026-04-18 |
| Old F3 Debug Screen | Fabric | 26.1 – 26.1.2 | Client-side only | 2026-04-03 |
Questions
Which Fabric dependencies does npc2 need?
Do players need npc2 on a server?
Which Minecraft versions does npc2 support?
In the catalog
npc2 is one of 8,499 Technology mods on ModsFinder, and one of 4,201 Technology mods for Fabric. 8,071 mods support Minecraft 26.3.
Similar mods
What the author says
npc2 is an experimental Fabric mod for Minecraft that drops autonomous survival NPCs into your world. Each one runs on a weighted survival plan, keeps persistent memories, uses vanilla mob physics, and makes its decisions through a node-based behavior graph covering gathering, crafting, combat, storage, movement, and…
Official listing
- Modrinth page
- modrinth.com/mod/npc2
- Owner
- oofman124
- Published
- 2026-07-20
- Updated on Modrinth
- 2026-09-19
- Facts verified
- 2026-10-15
