- ◆ 支持核心
- Arclight
- ◆ 插件前置
- Cobblemon
- ◆ 游戏版本
- 1.21.1
介绍
CobbleDialog是可以用于创建方可梦游戏中的虚拟训练师对话的插件,支持单页对话格式以及多页对话格式,满足简单对话以及复杂剧情对话的需求
指令列表
部分示例配置.json
游戏截图
CobbleDialog是可以用于创建方可梦游戏中的虚拟训练师对话的插件,支持单页对话格式以及多页对话格式,满足简单对话以及复杂剧情对话的需求
指令列表
| 指令 | 权限要求 | 含义 |
|---|---|---|
| /cdn open <对话框配置> <id> | cobbledialognpc.command.open | 打开对话框 |
| /cdn help | cobbledialognpc.command.use | 查看指令帮助 |
部分示例配置.json
JSON:
{
"title": "命令测试",
"description": "测试命令执行功能",
"pages": [
{
"id": "main",
"speaker": "测试NPC",
"text": "点击按钮测试命令执行:",
"inputs": [
{
"text": "测试私聊命令",
"action": {
"type": "tell",
"commands": [
"§a这是一条测试消息!",
"§b你的名字是:{p}"
]
}
},
{
"text": "测试给予物品",
"action": {
"type": "console",
"commands": [
"give {p} minecraft:stone 1"
]
}
},
{
"text": "测试命令+跳转",
"action": {
"type": "tell",
"commands": [
"§c执行命令并跳转到下一页"
]
},
"next": "next_page"
},
{
"text": "关闭",
"action": "close"
}
]
},
{
"id": "next_page",
"speaker": "测试NPC",
"text": "成功跳转到下一页!命令也执行了吗?",
"inputs": [
{
"text": "返回主页",
"next": "main"
},
{
"text": "关闭",
"action": "close"
}
]
}
]
}
JSON:
{
"title": "欢迎对话",
"description": "生日快乐 傻呗",
"dialogue": {
"speaker": "21岁生日快乐!",
"text": "Oh!今天是你的生日!你还记得吗?祝你生日快乐!准备好体验精彩的冒险了吗?!",
"options": [
{
"text": "我准备好了!",
"action": {
"type": "broadcast",
"commands": [
"§6{player} 刚刚庆祝了21岁生日!让我们一起祝福TA!"
]
}
},
{
"text": "给我更多礼物!",
"action": {
"type": "console",
"commands": [
"give {player} minecraft:diamond 3",
"give {player} minecraft:golden_apple 2",
"give {player} cobblemon:rare_candy 1",
"tell {player} §a生日快乐!这些是额外的生日礼物!"
]
}
},
{
"text": "让我许个愿!",
"action": {
"type": "op",
"commands": [
"weather clear",
"time set day",
"tell {player} §d你的生日愿望实现了!天空放晴,阳光明媚!"
]
}
}
]
}
}
游戏截图