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

395.5k
102
Library
AboutChangelogVersions

Without the patch:

Sharpness enchantment.level.100

With the patch:

Sharpness 100

For Developers

To introduce LangPatch API as a dependency:

repositories {
    // Our new maven
    maven { url 'https://mvn.7c7.icu' }
}

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

In addition, online javadoc can be found here.

Built-in alternative number formats

Since version 2.x, the way to change to roman format has changed from installing the config mod to modify several translation values.

A quick solution is to install this resource pack with this mod. The config mod is not mandatory to switch to roman format.

Here are the translation values:

  • langpatch.conf.enchantment.default.type, which controls enchantment format (under default patch).
  • langpatch.conf.potion.default.type, which controls potion potency format (under default patch).

Acceptable values are (Examples of 123):

  • numeral / number / numeric / arabic / default: Numeral format (123)
  • roman: Roman format (CXXIII)
  • simplified / chinese / zh_normal: Simplified Chinese (一百二十三)
  • traditional / zh_upper: Traditional Chinese, uppercase (壹佰貳拾叄)

Please note that default and roman in the legacy config mod are now identical, the latter one becoming deprecated.

Here's an example for assets/<any_namespace>/lang/en_us.json:

{
  "langpatch.conf.enchantment.default.type": "roman",
  "langpatch.conf.potion.default.type": "roman"
} 

This changes both enchantment and potion potency format into roman format.

90% of ad revenue goes to creators

Support creators and Modrinth ad-free with Modrinth+

Compatibility

Minecraft: Java Edition

24w33a
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 only
Singleplayer

Links

Report issues View source

Creators

teddyxlandlee
teddyxlandlee Owner

Details

Licensed WTFPL
Published 2 years ago
Updated 2 weeks ago

Modrinth is open source.

new-project-page@ac78952

© 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.