• 游客, 欢迎您来到九域资源社区,如果您是新人,请前往 论坛公告 板块查看新人引导教程 或者 点我打开
    如果您发现没有下载许可, 请先验证邮箱再进行下载;金锭可通过每日登陆或资源出售获取,目前没有其他渠道可获取。
资源图标

Bukkit CobbleDialog-方可梦虚拟对话框 支持单页对话及多页对话 1.0.0

没有下载权限
◆ 支持核心
Arclight
◆ 插件前置
Cobblemon
◆ 游戏版本
1.21.1
介绍
CobbleDialog是可以用于创建方可梦游戏中的虚拟训练师对话的插件,支持单页对话格式以及多页对话格式,满足简单对话以及复杂剧情对话的需求

指令列表
指令权限要求含义
/cdn open <对话框配置> <id>cobbledialognpc.command.open打开对话框
/cdn helpcobbledialognpc.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你的生日愿望实现了!天空放晴,阳光明媚!"
          ]
        }
      }
    ]
  }
}

游戏截图
3.png

2.png
  • Like
反馈: langle
作者
XiaoCaoAwA
下载
5
查看
69
首次发布
最后更新
评分
0.00 星 0 星

来自XiaoCaoAwA的更多资源

分享资源