Enchantment Level Language Patch

Enchantment Level Language Patch

Mod

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

Client Library

388.2k downloads
101 followers
Follow Save
Filter loader...
Filter versions...

Supports language key langpatch.conf.enchantment.override and langpatch.conf.potion.override (default to false).

When set to true, LangPatch-generated format will override language files (e.g.you can see Sharpness 5 without removing the item "enchantment.level.5" in language files).

Technical update:

Added EnchantmentLevelLanguagePatch.withFallback for 1.19.4+ patches.

Supports "remaining unchanged"

Update links & NeoForge config

Update mods.toml

Mixin accessor rename; alter error text

Fix: since 1.20.6, MCF uses MojMaps in production

Fixes an issue that causes NeoForge port having an invalid version string

Add NeoForge support for 1.20.5+

Add NeoForge support!

Fixes #4: add 1.19.4 support

Modifies lzh.json - in Classical Chinese language, simplified Chinese numbers are used by default

Changes way to swap between numeral and roman:

Now using langpatch.conf.enchantment.default.type and langpatch.conf.potion.default.type to determine which format is used.

  • simplified, chinese, zh_normal -> Chinese numbers (lower case) e.g. 一二三

  • traditional, zh_upper -> Chinese numbers (upper case) e.g. 壹貳叄

  • numeral, number, numeric, arabic, default -> Arabic numerals e.g. 123

  • roman -> Roman numerals e.g. I II III

enchlevel-langpatch:default and enchlevel-langpatch:roman hooks are functionally equal now.

Technical: registries will be frozen after LangPatchImpl::init, which requires sub-mods to register before it.

In Forge: register in mod constructor

In Fabric: replace client entrypoint with enchlevel-langpatch.init

This is the first version on Modrinth. Legacy versions go to CurseForge.

Optimizations introduced:

  • LRU cache map for Roman/Hanzi numbers
  • Forge entrypoint generation

Project members

teddyxlandlee

Owner

Details

Licensed WTFPL
Published 3 years ago
Updated 3 days ago