What are you searching for?

Enchantment Level Language Patch

Enchantment Level Language Patch

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

download 474.9K Downloads · favorite 118 Followers · Updated 1 month ago
Fabric Forge Library Neoforge Quilt 1.16 1.16.1 20w27a 20w28a 20w29a +323 more

Versions

inventory_2
[1.16+/ALL] LangPatch 3.5.1

3.5.1 · 1 month ago · 56.37 KB

Fabric Forge Neoforge Quilt 1.16 1.16.1 20w27a
inventory_2
[1.16+/ALL] LangPatch 3.4.2

3.4.2 · 1 month ago · 58.52 KB

Fabric Forge Neoforge Quilt 1.16 1.16.1 20w27a
inventory_2
[1.16+/ALL] LangPatch 3.3.3

3.3.3 · 1 month ago · 53.74 KB

Release download
Fabric Forge Neoforge Quilt 1.16 1.16.1 20w27a
inventory_2
[1.16+/ALL] LangPatch 3.3.2

3.3.2 · 1 month ago · 53.92 KB

Fabric Forge Neoforge Quilt 1.16 1.16.1 20w27a
inventory_2
[1.16+/ALL] LangPatch 3.3.1

3.3.1 · 2 months ago · 53.64 KB

Release download
Fabric Forge Neoforge Quilt 1.16 1.16.1 20w27a

About

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
    maven { url 'https://mvn.7c7.icu' }
}

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

Online javadoc can be found here.

open_in_new View on Modrinth
Categories
Compatibility
Client: Required Server: Unsupported
gavel WTFPL

Conversation

What are your thoughts?

Related projects

Library
Fabric API
Fabric API

by modmuss50

Lightweight and modular API providing common hooks and intercompatibility measures utilized by mods using the Fabric toolchain.

download 127.9M
favorite 27,365
Library
Cloth Config API
Cloth Config API

by shedaniel

Configuration Library for Minecraft Mods

download 94.0M
favorite 13,653
Library Management Utility
YetAnotherConfigLib (YACL)
YetAnotherConfigLib (YACL)

by isxander

A builder-based configuration library for Minecraft!

download 65.8M
favorite 7,589
Library
Architectury API
Architectury API

by shedaniel

An intermediary api aimed to ease developing multiplatform mods.

download 60.8M
favorite 6,641
lock Cookie consent

SkinMC uses cookies to provide functionality and features.