Tags
Creators
Details
Licensed AGPL-3.0-only
Published last year
Updated 2 months ago
All versions
1.0.9-fabric-1.20.1
Release
chatbox 1.0.98 months ago 21
Uploaded by
Compatibility
Minecraft: Java Edition
1.20.1
Platform
Fabric
Supported environments
Client and server
Required content
Any compatible version
Any compatible version
Changes
1.0.9
- 对话可以添加多个目标实体,便于在对话中与实体互动和调用数据;添加与对话目标实体数据相关的占位符,格式为
<targetN.property>,可在对话文本和指令中解析成对应的数据 - 对话json:
- 部分组件新增
renderEvents字段,即对话组件渲染事件 - 新增
animationFPS字段,用于限制立绘动画的帧率,默认值为60 - 新增
autoPlayTick字段,用于调整自动跳转下一句对话的延迟,默认值为20(对于有音效的对话,跳转延迟不会大于20) - 选项的隐藏和锁定改为由
unlockCommand和isLock参数控制,根据execute if或execute unless指令的执行结果判断是否隐藏或锁定 - 移除了部分字段,现在对话json中的文本都使用翻译键
- 部分组件新增
- 主题中对话框配置项新增
textAlign字段,即支持居中对齐和右对齐 SkipChatEvent改为双端事件,便于在服务端修改对话(因为双端,所以chatBoxScreen参数又没了,哦悲悲)。关闭对话界面也会触发SkipChatEvent事件,此时index参数为-1- 渲染调整:
- 选项的位置现在会根据
alignY参数自动调整,优化选项文本对齐的方式 - 立绘现在以图像的中心为基准进行缩放,而不是左上角
- 选项的位置现在会根据
- 添加简单的对话调试功能,在对话框screen按f3进入
- 添加文本注音标签
ChatBoxCommandUtil增加更多方法,便于使用kubejs动态修改对话破坏性修改提示
- 由于优化了选项文本对齐的方式,新版选项的文字可能错位,请修改主题文件中选项的
optionChatX参数 - 由于立绘缩放方式改为以图像中心为基准,因此缩放的立绘可能错位,请调整立绘的坐标参数(推荐使用调试模式)
SkipChatEvent改为双端事件,该事件的参数也有改变- 选项点击事件(ChatOptionClickEvent)已完全改头换面为对话组件渲染事件(ComponentEvent),因此kubejs工具类中相应的方法由
registerClickEvent改为registerComponentEvent,且参数有变化 - 由于选项的隐藏和锁定改为由指令控制,因此旧的计分板相关的参数已完全移除(虽然应该没人用,但还是提一句)
Optional dependencies
Any compatible version
Any compatible version
Projects on Modrinth are automatically available through a Maven repository for use with JVM build tools such as Gradle. To learn more about the Modrinth Maven API, click here.
Note: When available, you should use the creator's maven repo instead as it will have transitive dependency information that the Modrinth Maven API does not. You may also end up with duplicate dependencies if you use a mix of Modrinth and non-Modrinth Maven repositories for your dependencies, because the group identifier will be different when served through the Modrinth Maven API.
Maven coordinates:
Version ID:
build.gradle:
repositories {
exclusiveContent {
forRepository {
maven {
name = "Modrinth"
url = "https://api.modrinth.com/maven"
}
}
// forRepositories(fg.repository) // Uncomment when using ForgeGradle
filter {
includeGroup "maven.modrinth"
}
}
}
// Standard Gradle dependency
dependencies {
implementation "maven.modrinth:ufXo7W3f:IrMTtQxQ"
}
// Legacy Loom dependency
dependencies {
modImplementation "maven.modrinth:ufXo7W3f:IrMTtQxQ"
}

