介绍
Datapack Translate
Many datapacks write their dialogue, item names and lore as plain text inside commands rather than as translation keys. That leaves the usual routes closed: a resource pack has no keys to override, and forking the datapack copies its code, freezes it at one version, and can break the pack’s own selectors that compare item names.
This mod takes a third route: it intercepts text as it is drawn on screen and swaps in your translations. The datapack’s files, NBT and commands are never modified.
What that means
Nothing in the world is changed — selectors and quest logic that compare item names keep working.
Saved worlds stay untouched; an item you already own reads as translated because only its tooltip is swapped, not its data.
Removing the mod puts everything back exactly as it was.
It follows the game language: pick a language with a matching folder and it loads; pick another and nothing is swapped.
How to use it
The mod reads a plain dictionary from config/datapacktranslate/<language>/, one JSON file per language folder (e.g. es/). Each file maps the original on-screen text to your translation. The mod ships with no translations — you supply the language folder for whatever datapack you want to translate.
/datapacktranslate reload re-reads the files without restarting. /datapacktranslate status shows how many are active.
常见问题
datapacktranslate 支持哪些 Minecraft 版本?
datapacktranslate 支持 Minecraft Java 版 1.21.1,可用的加载器:NeoForge。下载时注意选择和你游戏版本一致的文件。
datapacktranslate 怎么安装?
先用 PCL2 或 HMCL 启动器安装对应版本的 NeoForge,再把下载的 .jar 文件放进游戏目录的 mods 文件夹,重新启动游戏即可。开启了版本隔离的,mods 文件夹在 versions/版本名 下面。
评论
登录后评论和评分