跳到正文

LocalizedBook

作者:marlester-dev

Adds an ability to localize hardcoded 'name', 'landing_text' and 'subtitle' values in Patchouli's book.json.

收藏

介绍

中文介绍正在准备中,下面暂时显示原文。

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

  1. Install Fabric API/Forge and Patchouli mod.
  2. Download LocalizedBook and place it in your mods folder.
  3. Restart Minecraft to complete the installation.

Configuration

To configure your books for localization:

  1. Navigate to .minecraft\config\localizedbook\mainconfig.toml.
  2. 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!

常见问题

LocalizedBook 支持哪些 Minecraft 版本?

LocalizedBook 支持 Minecraft Java 版 1.20.1,可用的加载器:Fabric / Forge。下载时注意选择和你游戏版本一致的文件。

LocalizedBook 怎么安装?

先用 PCL2 或 HMCL 启动器安装对应版本的 Fabric / Forge,再把下载的 .jar 文件放进游戏目录的 mods 文件夹,重新启动游戏即可。开启了版本隔离的,mods 文件夹在 versions/版本名 下面。运行环境:仅客户端。

评论

登录后评论和评分

marlester-dev 的其他作品

查看全部 →