
Modrinth · Minecraft mod
Chat-With-NPC
Chat-With-NPC allows players to freely chat with NPCs, who will answer questions based on his setting (Basic Prompt) and the setting of their Groups (Nation, City, Town ,etc.). Suitable for RPG maps or puzzle maps.
Quick answer
Which Chat-With-NPC release should I use?
Chat-With-NPC 0.1.2-1.19.4 targets 1.19.4, 1.20, 1.20.1 with Fabric. Installation on the client is optional. Installation on the dedicated server is optional. No extra mods listed for this file.
Where it goes
Is Chat-With-NPC required on the client, server, or both?
Installation on the client is optional. Installation on the dedicated server is optional.
The source marks this as usable on both the client and server.
What else does Chat-With-NPC 0.1.2-1.19.4 need?
0.1.2-1.19.4. Change the file and its required mods may change too.
This file does not list any required mods. Do not add a library just because a different file uses it.
This file does not list any required or optional mods.
Before you install it
Add Chat-With-NPC without breaking your instance.
Built for Chat-With-NPC 0.1.2-1.19.4. Pick another file and the loader, install side or required mods may change.
- 01
Stick to this file
Use 0.1.2-1.19.4. It targets 1.19.4, 1.20, 1.20.1 with Fabric; another release may have different loader, side or dependency requirements.
- 02
Bring the mods it needs
This file does not list any required mods. Do not add a library just because a different file uses it.
- 03
Put it on the correct side
Installation on the client is optional. Installation on the dedicated server is optional.
- 04
Pick the file you checked
Use the “Get this file” button beside 0.1.2-1.19.4. It opens that exact file at the source.
About this project
What does Chat-With-NPC add?
Chat-with-NPC
The mod is still in public test, please submit an issue if you find any problems. If you want to use the latest version,
please compile the source code yourself, see Build.
1. Introduction
Chat With NPC allows players to freely chat with NPCs, who will answer questions based on his setting (Basic Prompt)
and the setting of their Groups (Nation, City, Town ,etc.). Suitable for RPG maps or puzzle maps. The NPCs would not
change the game rule (if you don't use the advanced features). NPC can also perform some actions based on the chat
content if you define it.
In the future version, we will add innovative features such as NPCs chatting with each other, NPCs' viewpoints on
events, etc., so that NPCs in the same Group can interact with each other.
2. How to use
Any player can talk to NPCs by shift+clicking on them, if the NPC has been registered by OPs. Then the NPC will
greet with players.
The NPC's speech can be seen by everyone (in the chat bubble above their head), or by players within a certain range
around NPC (in the Chat bar).
Any nearby players can reply to the NPC in the chat bar directly (or the nearest NPC if there are multiple NPCs near
the player).

If you are administrator, see the Installation for more information.
3. Features
- Each
NPChas his ownInstructions, and he can belong to aGroup. - Each
NPCwill manager their context of the conversation automatically by OpenAI. - Each
Groupalso has its ownInstructionsto describe them, and can also record someEventthat can be easy to
change. - Each
Groupcan record aParentGroupuntil the group's parent group isGlobal,Globalcannot have a parent
group. - Each
NPC's conversation will combine his ownInstructions, the context of this
conversation (or all the conversation if needMemory is true), theIntructionsof hisGroupand all
itsParentGroup, and the content ofEvent. - You can define the
Functionsthat could be call by the NPC in the conversation.
4. Requirements
- Minecraft Server 1.19.4 or higher
- Fabric Loader 0.12.0 or higher
- Fabric API included
5. Installation
- After installing the mod in
modsfolder, grab your OpenAI API key
from here, and set it with the/npchat setkey <key>command. - You can use the command in Commands to set the basic configuration of the mod.
- For register the NPCs, please read RegisterNPC.
- For register the Groups, please read RegisterGroup.
- To know about the configuration of the mod, please read Configuration.
- If you want to use some advanced features, please read Advanced.
6. Commands
/npchat- View configuration status/npchat help- View commands help/npchat enable/disable- Enable/disable the mod/npchat setKey <key>- Set OpenAI API key/npchat setModel <model>- Set AI model/npchat setRange <range>- Set the range of the conversation/npchat setLanguage <language>- Set the response language/npchat setWordLimit <wordLimit>- Set the word limit of the response/npchat setURL <url>- Set the OpenAI API proxy URL/npchat saveAll- Save all the data to the disk/npchat setChatBar <true/false>- Set to display the conversation at the chat bat at the bottom left or not,trueto display,falseto hide./npchat setBubble <true/false>- Set to display the bubble of the conversation above our lovely NPC or not,trueto display,falseto hide./npchat setBubbleStyle Color <color preset>- Set the preset colors for font and background./npchat setBubbleStyle timeLastingPerChar <time>- Set the time lasting for a character in unit of second. For example, setting the time to 1.5 seconds means a sentence with 6 characters will have its bubble displayed for a total of 9 seconds.
7. To do list
- Improve the chat bubble.
- NPCs chat with each other and communicate their opinion of events. (See Advanced)
- NPCs have their opinion on every event in their
Group. - NPCs performing actions based on the chat content. (See Advanced)
8. Reference
- AIMobs by rebane2001
and Eianex
Project description from Modrinth.
Pick your setup
Chat-With-NPC by Minecraft version and loader
Choose the version and loader you play, then open the matching release.
1.21.3
1 loader build1.21.2
1 loader build1.21.1
1 loader build1.21
1 loader build1.20.6
1 loader build1.20.5
1 loader build1.20.4
1 loader build1.20.3
1 loader build1.20.2
1 loader build1.20.1
1 loader build1.20
1 loader buildShowing the newest 12 of 13 game versions. Older files are in the list below.
Check the dependencies, then try the file in a copied instance before changing a world you care about.
Recent files
Chat-With-NPC versions and loaders
0.1.2-1.19.4
chat-with-npc-0.1.2-1.19.4.jar
20 Mar 2025
0.1.0-1.20
chat-with-npc-0.1.0-1.20.jar
28 Mar 2024
0.1.0
chat-with-npc-0.1.0.jar
27 Mar 2024
Looking for an older file? The official Modrinth project page is in Resources.