跳到正文

Enchantment Level Language Patch

作者:teddyxlandlee

Sharpness enchantment.level.20 => Sharpness 20/XX

收藏

介绍

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

For Forge 1.14.x users: MixinBootstrap
(or any alternative Mixin loader) is required.

For Forge 1.13.x users: ModernMixins
(or any alternative Mixin loader) is required.

📢 Telemetry Update

Telemetry is now off by default (Level -1). The backend is offline and will be permanently shut down; current versions collect and send no data.

After months of collection, we now understand player preferences, so the service is retired. Existing reports remain available here; all raw data and copies have been deleted.

config/enchlevel-langpatch-telemetry.txt is no longer needed. See our Privacy Policy. Thanks for your support!

Without the patch:

Sharpness enchantment.level.100

With the patch:

Sharpness 100

Common alternative formats

These stub mods should be loaded with LangPatch itself.

I18n API

This mod supports a limited configuration of enchantment level and potion effect level formatting through language files.

Template Keys

  • enchantment.level.x & potion.potency.x: Modify the templates for enchantment levels and potion effect levels, respectively.
  • Default value: "%s"

Format Types

  • langpatch.conf.enchantment.default.type & langpatch.conf.potion.default.type: Modify the format of enchantment levels and potion effect levels, respectively.

| Value | Format | Example |
|:—————————————————-|:————————————————-|:——–|
| simplified, chinese, zh_normal | Lowercase Chinese numerals | 一百二十三 |
| traditional, zh_upper | Uppercase Chinese numerals (traditional) | 壹佰貳拾叄 |
| numeral, number, numeric, arabic, default | Arabic numerals (default) | 123 |
| roman | Roman numerals | CXXIII |
| skip, ignore | No change (e.g., for only replacing other text) | — |

Override

  • langpatch.conf.enchantment.override & langpatch.conf.potion.override: Whether to override existing translations. Acceptable values are "true" or "false".
  • If set to "true", existing translations will be replaced. See the implementation of the “pure arabic numeral” pack above.

For Developers

LangPatch, as is named, allows developers to make dynamic changes to in-game translations without directly modifying lang files.

To introduce LangPatch API as a dependency:

repositories {
    // Our new maven (2nd change)
    maven { url 'https://maven.hixland.com' }
}

dependencies {
    compileOnly "xland.mcmod:enchlevel-langpatch:3.9.1"
}

Online javadoc can be found here.

常见问题

Enchantment Level Language Patch 支持哪些 Minecraft 版本?

Enchantment Level Language Patch 支持 Minecraft Java 版 1.12.2–26.3,共 50 个版本,可用的加载器:Fabric / Forge / NeoForge / Quilt。下载时注意选择和你游戏版本一致的文件。

Enchantment Level Language Patch 怎么安装?

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

评论

登录后评论和评分

teddyxlandlee 的其他作品

查看全部 →