Mods
Resource Packs
Data Packs
Modpacks
Shaders
Plugins
Mods Resource Packs Data Packs Plugins Shaders Modpacks
Get Modrinth App Upgrade to Modrinth+
Sign in
ModsPluginsData PacksShadersResource PacksModpacks
Sign in
Settings
Enchantment Level Language Patch

Enchantment Level Language Patch

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

454.8k
116
Library

Compatibility

Minecraft: Java Edition

24w35a
1.21.x
1.20.x
1.19.x
1.18.x
1.17.x
1.16.x

Platforms

Fabric
Forge
NeoForge
Quilt

Supported environments

Client-side

90% of ad revenue goes to creators

Support creators and Modrinth ad-free with Modrinth+

Links

Report issues View source

Creators

teddyxlandlee
teddyxlandlee Owner

Details

Licensed WTFPL
Published 3 years ago
Updated 3 hours ago
DescriptionChangelogVersions

Without the patch:

Sharpness enchantment.level.100

With the patch:

Sharpness 100

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"

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 Traditional Chinese uppercase numerals 壹佰貳拾叄
    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 "full Arabic numeral replacement" package implementation 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.

Modrinth is open source.

main@4bafae8

© Rinth, Inc.

Company

TermsPrivacyRulesCareers

Resources

SupportBlogDocsStatus

Interact

Discord X (Twitter) Mastodon Crowdin
Get Modrinth App Settings
NOT AN OFFICIAL MINECRAFT SERVICE. NOT APPROVED BY OR ASSOCIATED WITH MOJANG OR MICROSOFT.