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

Scoreboard display name with keybind text component behave weirdly after changing said keybind

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Unresolved
    • None
    • 1.20.6, 24w21b, 1.21 Pre-Release 2, 1.21.1, 24w35a
    • None
    • Community Consensus
    • Commands, Text
    • Low
    • Platform

      Scoreboards display name that contains "keybind" JSON text component doesn't update after keybind is changed, and it appear offcentered if new keybinds name has different length than the old one

       

      Name only updates after:

      reentering world, changing name with command, reloading resource packs

       

      To reproduce:

      1. /scoreboard objectives add scores health "Name"
      2. /scoreboard objectives setdisplay sidebar scores
      3. /scoreboard objectives modify scores displayname {"keybind":"key.swapOffhand"}
      4. Change "Swap Item With Offhand" keybind to a different one that name is longer/shorter
      5. Observe scoreboard

            Unassigned Unassigned
            SamSwi samswi
            Votes:
            1 Vote for this issue
            Watchers:
            2 Start watching this issue

              Created:
              Updated:
              CHK: