模组介绍
ChatBox 是一款专为 Minecraft 设计的对话框模组,灵感来源于 Galgame(视觉小说)中的对话系统。你可以使用数据包对其进行配置:
-
预设多种对话框主题,并可通过指令随时切换。
-
自定义对话框、选项框、历史记录按钮以及角色立绘的外观、位置和大小。
-
角色立绘支持多种类型:图片、玩家头像和物品纹理。你可以为这些立绘定义自定义入场动画,其中图片提供 3 种预设动画。
-
为每一行配置对话文本和多个选项。点击选项可触发自定义指令并跳转到其他对话。
-
所有文本元素(对话、选项)均支持翻译键。
由于所有对话配置均通过数据包实现,你可以直接使用 /reload 命令重新加载所有对话设置。无需修改任何代码即可创建精美的对话系统!
内置指令
切换主题:
/chatbox theme <data_pack_path : ResourceLocation>
跳转到特定对话:
/chatbox skip <data_pack_path : ResourceLocation> <group : String> <index : int>
打开对话框:
/chatbox open
事件系统
对于 KubeJS 用户,该模组提供了预定义的事件:
//client_script
// 在对话框渲染之前触发。提供 GuiGraphics 用于自定义渲染。可取消。
ChatBoxEvents.renderPre(event=>{
let getGuiGraphics = event.getGuiGraphics()
event.cancel()
})
// 在对话框渲染之后触发。提供 GuiGraphics 用于自定义渲染。
ChatBoxEvents.renderPost(event=>{
let getGuiGraphics = event.getGuiGraphics()
})
// 当跳转到某段对话时触发。提供对话元数据以支持自定义功能。
ChatBoxEvents.skipChat(event => {
let { chatBoxScreen, resourceLocation, group, index } = event
})
附加信息
示例数据包和文档可在 GitHub 上找到。 即将推出的功能:作者正在开发一个基于 Web 的 JSON 生成器,以简化对话配置。敬请期待其发布!
Mod Introduction
ChatBox is a dialog box mod designed for Minecraft, inspired by the dialog systems found in Galgames. You can configure it using data packs:
-
Pre-set multiple themes for dialog boxes and switch between them anytime using commands.
-
Customize the appearance, position, and size of dialog boxes, option boxes, history buttons, and character portraits.
-
Character portraits support multiple types: images, player avatars, and item textures. You can define custom entry animations for these portraits, with images having 3 preset animations.
-
Configure dialog text and multiple options for each line. Clicking options can trigger custom commands and jump to other dialogs.
-
All text elements (dialogs, options) support translation keys.
Since all dialog configurations are implemented through data packs, you can reload all dialog settings directly using the /reload command. Create beautiful dialog systems without modifying any code!
Built-in Commands
Switch themes:
/chatbox theme <data_pack_path : ResourceLocation>
Jump to a specific dialog:
/chatbox skip <data_pack_path : ResourceLocation> <group : String> <index : int>
Open dialog box:
/chatbox open
Event System
For KubeJS users, the mod provides predefined events:
//client_script
// Triggered BEFORE dialog rendering. Provides GuiGraphics for custom rendering. Cancellable.
ChatBoxEvents.renderPre(event=>{
let getGuiGraphics = event.getGuiGraphics()
event.cancel()
})
// Triggered AFTER dialog rendering. Provides GuiGraphics for custom rendering.
ChatBoxEvents.renderPost(event=>{
let getGuiGraphics = event.getGuiGraphics()
})
// Triggered when jumping to a dialog. Provides dialog metadata for custom functionality.
ChatBoxEvents.skipChat(event => {
let { chatBoxScreen, resourceLocation, group, index } = event
})
Additional Information
Example data packs and documentation are available on GitHub. Upcoming feature: The author is developing a web-based JSON generator to simplify dialog configuration. Stay tuned for its release!
下载 chatbox
需要联机服务器吗?
稳定流畅、一键部署,几分钟即可和朋友联机开服
最低仅需 8 元/月 即可畅快联机
下载 chatbox
需要联机服务器吗?
稳定流畅、一键部署,几分钟即可和朋友联机开服
最低仅需 8 元/月 即可畅快联机
下载 chatbox
需要联机服务器吗?
稳定流畅、一键部署,几分钟即可和朋友联机开服
最低仅需 8 元/月 即可畅快联机
下载 chatbox
需要联机服务器吗?
稳定流畅、一键部署,几分钟即可和朋友联机开服
最低仅需 8 元/月 即可畅快联机
下载 chatbox
需要联机服务器吗?
稳定流畅、一键部署,几分钟即可和朋友联机开服
最低仅需 8 元/月 即可畅快联机
下载 chatbox
需要联机服务器吗?
稳定流畅、一键部署,几分钟即可和朋友联机开服
最低仅需 8 元/月 即可畅快联机
下载 chatbox
需要联机服务器吗?
稳定流畅、一键部署,几分钟即可和朋友联机开服
最低仅需 8 元/月 即可畅快联机
下载 chatbox
需要联机服务器吗?
稳定流畅、一键部署,几分钟即可和朋友联机开服
最低仅需 8 元/月 即可畅快联机
下载 chatbox
需要联机服务器吗?
稳定流畅、一键部署,几分钟即可和朋友联机开服
最低仅需 8 元/月 即可畅快联机
下载 chatbox
需要联机服务器吗?
稳定流畅、一键部署,几分钟即可和朋友联机开服
最低仅需 8 元/月 即可畅快联机
ChatBox 1.1.6.1beta — NeoForge 1.21.1
- 配合新版网页编辑器,支持立绘复制粘贴、撤销与重做。
- 支持通过预览框控制点调整组件大小,并对支持旋转的组件拖动旋转。
- 改善带动画组件的实时预览同步,保留动画本身的缩放与旋转效果。
关于这个资源的讨论、问题反馈与使用心得
还没有讨论,来发第一帖吧
你是这个资源的作者?登录后可认领此资源。
相似资源
模组
一个用于收集生物掉落物的多区块模组。
模组
让你能够在世界中的任何位置定位结构。
模组
一款轻量级模组,允许服务器管理员对抗透视作弊者。
模组
AE2:一款流行的自动化与存储模组
模组
基于 GTCEu 1.12.2 的现代 GregTech
模组
自动附魔,搭配 Create
评论 0
登录后参与评分
还没有评论,来抢沙发吧