介绍
![]()
A simple NPC mod that lets you add dialogue to any entity.
Like my mods? Support my work:
Forge 1.20 - 1.20.1
This small mod makes it so map makers can create custom dialogue, using datapacks, for entities in the world.
Usage
Dialogue can be applied to any entity using the command:
/conversations set <entity> <conversation id>
Dialogue can be forcibly started without a speaker entity for any player using the command
/conversations start <player> <conversation id> <speaker #optional>
Creating Dialogue
Creating dialoge is very easy, just make a datapack and in your data directory under your namespace add a “conversations” folder then create a .json file in there.
- The name of the file will be the id of the conversation, and your pack’s namespace will be the name space. EX: my pack’s name is “pack” and my filename is “test.json” so the conversation id will be “pack:test”
The following is a list of the json structure for dialogue files.
- #required means that that key is required for the dialogue to be read.
{
"title": "string", #string #required
"starting_index": 0, #integer
"global_actions": [ #optional list of actions that can be called from anywhere.
{ #example of a conditional action object
"condition":"", #string
"action":"" #string #requried
}
],
"dialogues": [ #required
{
"dialogue": "", #string #required
"replies":[ #required
{
"reply":"", #string #required
"action": #list or single action object #required
}
],
"condition": "", #string
"type_sound":"", #string
"talk_sound": {
"sound":"", #string
"volume": 0.5, #double
"pitch": 0.5 #double
},
"timings": [0.5, 1.5, 5.0, 10.0] #array of doubles
}
]
}
Sorry for the breif and possibly incomplete documentation, this mod is still a WIP.
Feel free to join our discord!
常见问题
Conversations 支持哪些 Minecraft 版本?
Conversations 支持 Minecraft Java 版 1.20–1.20.1,共 2 个版本,可用的加载器:Forge。下载时注意选择和你游戏版本一致的文件。
Conversations 怎么安装?
先用 PCL2 或 HMCL 启动器安装对应版本的 Forge,再把下载的 .jar 文件放进游戏目录的 mods 文件夹,重新启动游戏即可。开启了版本隔离的,mods 文件夹在 versions/版本名 下面。
LazrProductions 的其他作品
查看全部 →Lazr’s Lib
为 Lazr 的模组提供实用工具的前置库。
Cuffed
给你的朋友戴上手铐,把他们关起来!
Ultimate Chess
Minecraft里下棋!不会吧!
Ultimate Chess
在 Minecraft 里下国际象棋!真的假的!

评论
登录后评论和评分