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

Scoreboard display below_name has too many spaces

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Unresolved
    • None
    • 23w46a, 1.20.3 Pre-Release 1, 1.20.3 Pre-Release 2, 1.20.4, 24w07a, 1.20.5
    • None
    • Confirmed
    • Commands, Text
    • Low
    • Platform

      Description

      In a below_name Scoreboard objective where the numberformat is set to blank, there is a preceding space before the objective display name, which shouldn't be there if the value is explicity set to blank. If the objectives name is an empty component there is an additional trailing space after the value, which shouldn't be rendered.

      Observed Behaviour

      There is a space before the objective's display name if the numberformat is set to blank and there is a space after the numberformat, if the objective display component is empty.

      Expected Behavior

      There shouldn't be an additional space if before or after the rendered text if the previous/following value is not present (empty copmponent or blank numberformat)

      Steps to Reproduce

      1. You need at least two accounts to be able to reproduce this bug
      2. Add scoreboard objective /scoreboard objectives add test dummy "TEST"
      3. Set display type to below_name /scoreboard objectives setdisplay below_name test
      4. Set numberformat to blank /scoreboard objectives modify test numberformat blank (and see there is a preceeding space)
      5. Set numberformat to a fixed value /scoreboard objectives modify test numberformat fixed "FIXED" and set the objectives display name to an empty component /scoreboard objectives modify test displayname "" (and see there is a trailing space)

       

      As the numberformat can be changed per player it would be nice to have no trailing space to have a good way to render completely custom text below player names.

            Unassigned Unassigned
            MrKinau MrKinau
            Votes:
            6 Vote for this issue
            Watchers:
            6 Start watching this issue

              Created:
              Updated:
              CHK: