▶️ ЗАБЕРИ СВОИ 8 ПОДАРКОВ 🎁 ПРИ СОЗДАНИИ СВОЕГО МАЙНКРАФТ СЕРВЕРА
Моды/Enchantment Level Language Patch
Enchantment Level Language Patch

Enchantment Level Language Patch

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

532.1K
125

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 Settings: You can adjust the telemetry level by creating/editing config/enchlevel-langpatch-telemetry.txt.
See our Privacy Policy for more information.

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.

    ValueFormatExample
    simplified, chinese, zh_normalLowercase Chinese numerals一百二十三
    traditional, zh_upperUppercase Chinese numerals (traditional)壹佰貳拾叄
    numeral, number, numeric, arabic, defaultArabic numerals (default)123
    romanRoman numeralsCXXIII
    skip, ignoreNo 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
    maven { url 'https://mvn.7c7.icu' }
}

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

Online javadoc can be found here.

Совместимость

Minecraft: Java Edition

3D-Shareware-v1.3426.2.x26.1.x1.21.x1.20.x1.19.x1.18.x1.17.x1.16.x1.15.x1.14.x1.13.x1.12.x

Платформы

Поддерживаемые окружения

Клиент

Детали

Лицензия:WTFPL
Опубликован:3 года назад
Обновлён:3 дня назад
Главная