HomeJavaDatapacksNPCs engine
NPCs engine
DatapacksJava

NPCs engine

by Stepan1411 · on Modrinth

Interactive NPC system with dialogues for Minecraft 1.21.9+. Free Minecraft Java datapack for 1.21.9, 1.21.10, 1.21.11.

Which build do you need?

This mod ships a separate file for every mod loader and every version of the game. Pick both, then download — the wrong build installs fine and then does nothing in the game.

Mod loader

Minecraft version

⬇ Download for 1.21.9–26.1.2 · Data pack⬇ Download for 1.21.9–26.1.2 · Fabric⬇ Download for 1.21.9–26.1.2 · Forge⬇ Download for 1.21.9–26.1.2 · NeoForge⬇ Download for 1.21.9–26.1.2 · Quilt
I don't know my version or loader
Open the Minecraft launcher and look at the profile you play on — it names both, like fabric-loader-1.21.4. The version also shows in the bottom-right corner of the game's main menu.
No loader in the profile name? Then it's plain Minecraft, and these mods won't run — you need Fabric or NeoForge installed first.
NPCs engine — screenshot 1

NPC Engine

Interactive NPC system with dialogues for Minecraft 1.21.9+

NPC Engine is a data pack for creating NPCs with a dialogue system, response options, and a cinematic camera.


🎯 Features

NPCs

Dialogues

Camera


🚀 Installation

  1. Place the npcs-engine folder in your world's datapacks
  2. Run /reload

📋 Usage

Open the Editor

/function _npsc:open

Editor Controls

Editor Menu

Item Description
📝 Create NPC Create a new NPC
📋 List View all NPCs
💬 Dialogues Dialogue Editor
🎬 Dialogue Test Run a Dialogue Test
❌ Exit Close Editor

Interacting with NPCs


🔧 API for Developers

Creating an NPC

# Create a mannequin NPC
function npcs:npc/create_player

# Create an NPC entity
function npcs:npc/create_entity

Dialogue Management

# Add a dialogue line
function npcs:dialog/editor/add_line {npc_id:1,text:"Hello, traveler!"}

# Add a choice
function npcs:dialog/editor/add_choice {npc_id:1,text:"Where shall we go?",choices:["North","South"]}

# Start a dialogue programmatically
function npcs:dialog/start_play

Data Storage


📋 Requirements


🎮 Example: Quest NPC

# 1. Create an NPC
function npcs:npc/create_player

# 2. Add dialogues (npc_id = 1)
function npcs:dialog/editor/add_line {npc_id:1,text:"Greetings, hero!"}
function npcs:dialog/editor/add_line {npc_id:1,text:"I have something for you" task."}
function npcs:dialog/editor/add_choice {npc_id:1,text:"Will you accept it?",choices:["Of course!","Not now"]}

Create living worlds with the NPC Engine! 💬✨

Verified by MCModsHub

These come from our own check of the pack file, not from the source page.

Explore more