Uploaded image for project: 'Minecraft: Java Edition'
  1. Minecraft: Java Edition
  2. MC-248616

The strings for enchantment and effect levels above 10 are not translated

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Invalid
    • None
    • 1.18.1
    • None
    • JAVA 17
    • Confirmed
    • (Unassigned)

      The Bug

      There are no translation keys for enchantments and effects above level 10, so when using level 11 or above it simply shows as "Sharpness enchant.level.11" instead of "Sharpness XI" Us map and experience makers would like to use enchants and effects beyond 10! Personally I think the enchant and effect values should not be translation keys but rather computed internally (simple integer to roman numeral method). As looking at all the languages the roman numerals are not something that change. Alternatively, the approach bedrock uses could be implemented, above 10, bedrock simply uses integers, so it shows as "Sharpness 11" on bedrock. This is less ideal but is still better than the untranslated key name. The only way we currently have to display enchants above 10 is a hacky workaround of hiding the enchants of the item then writing in gray colored lore "Sharpness XI" which breaks locale support.

      Reproduce

      /give @p netherite_sword{Enchantments:[{id:sharpness,lvl:1000}]}
      

      Observed Result

      The string wasn't translated

      Expected Result

      The string would be translated

            Unassigned Unassigned
            ollyman123 Oliver Kent
            Votes:
            1 Vote for this issue
            Watchers:
            3 Start watching this issue

              Created:
              Updated:
              Resolved:
              CHK: