Compatibility
Minecraft: Java Edition
1.21.9ā1.21.11
Platforms
Links
Creators
Details
Licensed ARR
Published 2 months ago
Updated 2 months ago
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
- Mannequins ā NPCs based on
minecraft:mannequinwith custom skins - Other Entities ā Villagers, zombies, skeletons, etc.
- Interactivity ā Clicking on an NPC starts a dialogue
- Visual Editor ā Control via the action bar
Dialogues
- Typewriter Effect ā Smooth character-by-character typing
- Choice System ā Branching dialogues with multiple answer options
- Navigation ā Shift to skip to the next line
- Text Display ā Text is displayed above the NPC
Camera
- Cinematic Mode ā Automatically zooms in on the NPC
- Positioning ā The camera is positioned to the side of the NPC
- Smooth Transitions ā Blindness effect at the start/end Dialogue
- Restore ā automatically returns the player to their starting position
š Installation
- Place the
npcs-enginefolder in your world'sdatapacks - Run
/reload
š Usage
Open the Editor
/function _npsc:open
Editor Controls
- Mouse Wheel ā Navigate the menu
- RMB (carrot on a fishing rod) ā Select an item
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
- Click on the NPC to start a dialogue
- Shift ā next line
- The dialogue ends automatically after the last line
š§ 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
- Storage
npcs:dataā NPC and dialogue data - Storage
npcs:current_dialogā currently active dialogue
š Requirements
- Minecraft: 1.21.9+
- Permissions: Operator for editor commands
š® 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! š¬āØ



