LocalizedBook
描述
LocalizedBook 模组通过允许对 Patchouli 的 book.json 中硬编码的值(如 'name'、'landing_text' 和 'subtitle')进行本地化,从而增强你的 Minecraft 体验。对于希望为其他模组的 Patchouli 书籍提供多语言支持(这些书籍硬编码了这些值)的整合包开发者和内容创作者来说,此功能至关重要。
特性
- 本地化 Patchouli 书籍中的
name、landing_text 和 subtitle。
- 使用 TOML 格式轻松配置。
- 提供默认设置选项以恢复原始文本。
安装
- 安装 Fabric API/Forge 和 Patchouli 模组。
- 下载
LocalizedBook 并将其放入你的 mods 文件夹中。
- 重启 Minecraft 以完成安装。
配置
要配置你的书籍以实现本地化:
- 导航至
.minecraft\config\localizedbook\mainconfig.toml。
- 按照以下格式添加你的书籍条目:
"modid:bookid" = ["自定义名称或 'default'", "自定义着陆文本或 'default'", "自定义副标题或 'default'"]
你也可以像在使用 Patchouli 时一样在此处编写翻译键。
例如,若要自定义 Botania Lexicon:
"botania:lexicon" = ["Botania Guide", "Welcome to the world of Botania", "Your Guide to Botany and Magic"]
你可以将任何值设置为 "default" 以使用 book.json 中的默认值。
用法
配置完你的书籍后,更改将在重启 Minecraft 后在游戏中生效。请确保正确输入你的书籍 ID,以便正确反映更改。
在你的 Minecraft 模组环境中享受完全本地化的体验吧!
LocalizedBook
Description
The LocalizedBook mod enhances your Minecraft experience by allowing the localization of hardcoded values such as 'name', 'landing_text', and 'subtitle' in Patchouli's book.json. This functionality is essential for modpack developers and content creators who wish to offer multilingual support for patchouli books from other mods that hardcode these values.
Features
- Localize
name, landing_text, and subtitle in Patchouli books.
- Easy configuration using TOML format.
- Default setting options to revert to original text.
Installation
- Install Fabric API/Forge and Patchouli mod.
- Download
LocalizedBook and place it in your mods folder.
- Restart Minecraft to complete the installation.
Configuration
To configure your books for localization:
- Navigate to
.minecraft\config\localizedbook\mainconfig.toml.
- Add your book entries under the format:
"modid:bookid" = ["custom name or 'default'", "custom landing text or 'default'", "custom subtitle or 'default'"]
You can also write translation keys there just like in Patchouli.
For example, to customize the Botania Lexicon:
"botania:lexicon" = ["Botania Guide", "Welcome to the world of Botania", "Your Guide to Botany and Magic"]
You can set any value to "default" to use the default value from the book.json.
Usage
After configuring your books, the changes will take effect in-game after you restart minecraft. Ensure that your book IDs are correctly entered to reflect the changes properly.
Enjoy a fully localized experience in your Minecraft modded environment!
评论 0
登录后参与评分
还没有评论,来抢沙发吧