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

Beacon effect button does not use potion.potency.1

    XMLWordPrintable

Details

    • Bug
    • Resolution: Unresolved
    • None
    • 1.16.5, 21w20a, 1.17.1, 1.18 Pre-release 2, 1.18 Release Candidate 3, 1.18, 1.18.1 Release Candidate 2, 22w11a, 22w18a
    • None
    • Confirmed
    • (Unassigned)

    Description

      "II" is hardcoded in the tooltip of the beacon effect button for upgrading the effects to level II. This is inconsistent with other parts of the UI, and makes it so that resource packs cannot change the string. It should use potion.potency.1 translation string instead.

      Found while mapping GUI for Fabric.

      Code from BeaconScreen's inner class (Mojang mappings, 1.18):

      ...
      @Override
      protected MutableComponent createEffectDescription(MobEffect effect) {
              return new TranslatableComponent(effect.getDescriptionId()).append(" II");
      }
      ...
      

      It should append a space and new TranslatableComponent("potion.potency.1"), not (" II").

      Attachments

        Activity

          People

            Unassigned Unassigned
            apple502j apple502j
            Votes:
            7 Vote for this issue
            Watchers:
            4 Start watching this issue

            Dates

              Created:
              Updated:
              CHK: