
Enchantment Level Language Patch
Sharpness enchantment.level.20 => Sharpness 20/XX
- Загрузки
- 795K
- Подписчики
- 138
- Обновлён
- 10 августа 2026 г.
- Лицензия
- WTFPL
Опубликован 6 декабря 2022 г.
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:

With the patch:

Common alternative formats
- Want pure arabic numerals (e.g. Sharpness 5)? Download Stub Mod
- Want roman numerals (e.g. Sharpness XXV)? Download Stub Mod
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"
- Default value:
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_normalLowercase Chinese numerals 一百二十三 traditional,zh_upperUppercase Chinese numerals (traditional) 壹佰貳拾叄 numeral,number,numeric,arabic,defaultArabic numerals (default) 123 romanRoman numerals CXXIII 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.
- If set to
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.1.0")
}
Online javadoc can be found here.
Ченджлог
3.8.18Релиз26.3-snapshot-5, 26.3-snapshot-6, 26.3-snapshot-7 · 10 августа 2026 г.
3.8.18: Use jspecify nullness annotations
3.8.17Бета26.3-snapshot-4, 26.3-snapshot-5, 26.3-snapshot-6 · 1 августа 2026 г.
3.8.17: Fix error logs on Forge-like environment where multiple constructors of ClientLanguageMap exist
3.8.16Бета26.3-snapshot-4, 26.3-snapshot-5, 26.3-snapshot-6 · 31 июля 2026 г.
3.8.16: Verify ValueTable.txt at runtime
3.8.15Бета26.3-snapshot-1, 26.3-snapshot-2, 26.3-snapshot-3 · 11 июля 2026 г.
3.8.15: Add patchHooks to telemetry (Level 1, Functional) for cross-mod interaction detection.
3.8.14Бета26.3-snapshot-1, 26.3-snapshot-2, 26.3-snapshot-3 · 7 июля 2026 г.
3.8.14: Separate a new thread for telemetry, to avoid ghost Thread.contextClassLoader of threads in shared pool
3.8.13Релиз26.2-rc-1, 26.2-rc-2, 26.2 · 18 июня 2026 г.
3.8.13: Fix NeoForge-side telemetry being invalid with new generation FancyModLoader
3.8.12Релиз26.2-rc-1, 26.2-rc-2, 26.2 · 18 июня 2026 г.
3.8.12: Introduce a more elegant approach to invoke Fabric sub-entrypoints.
3.8.11Бета26.2-snapshot-8, 26.2-pre-1, 26.2-pre-2 · 2 июня 2026 г.
3.8.11: Update telemetry endpoint
Комментарии
Загружаем…