鹊桥
首页
介绍
部署
配置文件
命令
  • V2 事件
  • V1 事件
  • V2 API
  • V1 API
常见问题
  • 标准开发
  • 快速开发
对接
GitHub
首页
介绍
部署
配置文件
命令
  • V2 事件
  • V1 事件
  • V2 API
  • V1 API
常见问题
  • 标准开发
  • 快速开发
对接
GitHub
  • 总览
  • 接口列表

    • 广播消息
    • 私聊消息
    • 标题
    • Actionbar
  • 常用对象

V1 API 常用对象

message

字段名数据类型是否必填默认值说明
typestring是text一般为 text 在 Minecraft 中没有其他用法
dataCommonTextComponent / array<CommonBaseComponent>是-统一解析的消息内容

CommonTextComponent

字段名数据类型是否必填默认值说明
textstring是-文本内容
colorstring否white文本颜色
fontstring否null文本字体
boldboolean否false是否粗体
italicboolean否false是否斜体
underlinedboolean否false是否下划线
strikethroughboolean否false是否删除线
obfuscatedboolean否false是否混淆
insertionstring否null点击后插入文本
click_eventClickEvent否null点击事件
hover_eventHoverEvent否null鼠标悬浮事件

ClickAction

键值说明
OPEN_URLopen_url打开链接
OPEN_FILEopen_file打开文件
RUN_COMMANDrun_command运行命令
SUGGEST_COMMANDsuggest_command提示命令
CHANGE_PAGEchange_page翻页
COPY_TO_CLIPBOARDcopy_to_clipboard复制到剪贴板

ClickEvent

KeyValue说明
actionClickAction点击行为
valuestring执行的值

HoverAction

键值说明
SHOW_TEXTshow_text显示文本
SHOW_ITEMshow_item显示物品
SHOW_ENTITYshow_entity显示实体

HoverItem

字段名数据类型是否必填默认值说明
idstring否-物品 ID Spigot, Forge, Fabric
countint否-数量 Spigot, Forge, Fabric
tagstring否-物品 tag Spigot
keystring否-物品 key Velocity

HoverEntity

字段名数据类型是否必填默认值说明
idstring否-显示的实体 ID Spigot
typestring否-显示的实体类型 Spigot, Forge, Fabric
namearray<CommonBaseComponent>否-显示的实体名称 Spigot, Forge, Fabric
keystring否-显示的实体 key Velocity

HoverEvent

KeyValue
actionHoverAction
textarray<CommonBaseComponent>
itemHoverItem
entitystring

CommonBaseComponent

字段名数据类型是否必填默认值说明
textstring是-文本内容
colorstring否white文本颜色
fontstring否null文本字体
boldboolean否false是否粗体
italicboolean否false是否斜体
underlinedboolean否false是否下划线
strikethroughboolean否false是否删除线
obfuscatedboolean否false是否混淆
insertionstring否null点击后插入文本
Edit this page
最近更新: 2025/12/2 15:22
Contributors: 17TheWord