-
Bug
-
Resolution: Unresolved
-
None
-
23w46a, 1.20.3 Pre-Release 1, 1.20.3 Pre-Release 2, 1.20.4, 24w07a, 1.20.5, 1.21, 24w33a, 1.21.1, 1.21.2 Pre-Release 1, 1.21.2 Pre-Release 2
-
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
- You need at least two accounts to be able to reproduce this bug
- Add scoreboard objective /scoreboard objectives add test dummy "TEST"
- Set display type to below_name /scoreboard objectives setdisplay below_name test
- Set numberformat to blank /scoreboard objectives modify test numberformat blank (and see there is a preceeding space)
- 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.
- relates to
-
MC-275892 A scoreboard objective with display mode below_name uses the distance from the camera instead of the player when deciding whether to render
- Open