4.0.0+mc1.20.6
Compatibility
Required content
Changes
更新计划:https://github.com/VM-Chinese-translate-group/VMTranslationUpdateMod/issues/22
新增
- 添加新指令
/vmtu check用于手动检查汉化更新。此指令为仅客户端 - 实际使用
modpack.json里的整合包基础信息version,此前未使用。用于提示玩家这次是汉化热更新还是整合包版本跟进更新,提醒更新整合包再安装汉化。避免了汉化与整合包不兼容,对玩家造成困扰。 - 添加汉化补丁兼容提示,如果游戏语言和汉化补丁支持的语言不同则会提示切换至支持的语言
- 在繁体中文等中文语言中,对于非简中的环境会提示切换简中以获得中文翻译
改进
- 现在检查模组安装屏幕与联网检查汉化更新仅会在中文环境下进行(大陆简体、港中、繁中)
- 改进了翻译质量
- 为版本号添加黄色高亮
核心代码
- 移除 Fabric 的进入世界触发检查更新的 Mixin 方法,这个事件可以用 Fabric API 来完成
- 更新 VMTUCore 到 0.1.2,资源包转换数据改为从 Gitee 联网获取
- 重构 ModEvents 更新检查逻辑大量代码
- 处理了 jdk20+ 的 URL 弃用警告
vm-meta:
在本次更新中,meta-v2将采用json格式,详情见:#23,meta-v1版本因为兼容问题暂时保留,但未来将会被弃用。
这意味着在VMTU 4.x 中,modpackinfo.json的updateCheckUrl项为可选字段(和meta-v1保持兼容性),因为meta-v2将只使用vm-meta.json文件。
modpackinfo
- 添加
id用于查找meta内对应的id - 弃用
updateCheckUrl,因为 vm-meta v2 以替代此项(目前仍然支持,因为需要兼容vm-meta v1)
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:wvCSIW08:AISYXrBO"
}
// Legacy Loom dependency
dependencies {
modImplementation "maven.modrinth:wvCSIW08:AISYXrBO"
}


