BorderlessWindow-1.5.0.jar
Curse Maven Snippet
What's new
1.5.0 — Enchantment level numerals
Enchantment levels above X showed raw text instead of a number: a Looting 11 book read "Looting enchantment.level.11". Levels are legal all the way to 255, but Minecraft only ships names for the first ten.
This fixes it and adds a style option with three values:
- Mixed (default): Roman numerals up to X, plain numbers past it. This is the fix on its own — nothing you already see changes.
- Always Roman: generated numerals at every level, XI through CCLV.
- Always Numbers: plain numbers at every level, including 1-10.
Mixed defers to the language file whenever a translation exists, so resource packs that do name high levels keep working. The other two are explicit choices and always generate.
Implementation: WrapOperation (MixinExtras) wraps the single Component.translatable call inside Enchantment.getFullname, capturing the target method's own level parameter instead of parsing it back out of the key. The guard above that call is untouched, so single-level enchantments like Mending still show no number, and returning the original Operation leaves vanilla's component identical whenever no override applies. One injection covers item tooltips, enchanted books and the enchanting table.
New enchantment/ package (EnchantmentLevelStyle, EnchantmentLevelState, EnchantmentLevelFormatter) plus mixin/EnchantmentMixin, wired into both UIs, the config file and the three lang files.
This mod has no additional files

