The bug
When you type /bossbar set foo:bar style, the command suggestions show the different styles ordered incorrectly. The style "notched_6" is after "notched_10", while 10 is a higher number.
This affects all string arguments where the string ends with a number, but not numeric arguments such as age block states.
Affected areas
Disclaimer: this absolutely affects more fields, but these can be reproduced without mods
Affected field | Affected command(s) | Affected selector argument(s) |
|---|---|---|
Advancement IDs |
| -(MC-130452) |
Advancement criteria |
| -(MC-130452) |
Biome tags |
| - |
Block tags |
| - |
Boss bar IDs |
| - |
Boss bar style |
| - |
Command storage IDs |
| - |
Dimension IDs |
| - |
Dimension tags |
| - |
Entity type tags | - |
|
Function IDs |
| - |
Function tags |
| - |
Item tags |
| - |
Loot table IDs |
| - |
Predicate IDs |
| -(MC-130452) |
Scoreboard objective IDs |
| -(MC-130452) |
Sound events |
| - |
Tags |
| -(MC-130452) |
Team IDs |
| -(MC-130452) |
Steps to reproduce
Boss bar style:
Type
/bossbar set foo:bar styleObserve that
notched_10is suggested beforenotched_6
Others listed:
Create an instance of the affected field named
test_2Create another instance with the named
test_10Type an affected command for that instance
Observe that
test_10is suggested beforetest_2
Linked issues
Attachments
Comments 8
This affects all string arguments that end with numbers, such as function names; it orders "end" after numbers, rather than before.
Requesting this report to get more generalized.
Re-requesting generalization, as, again, boss bar styles are not the only thing affected.
Off the top of my head, also affects:
Boss bar IDs (/bossbar, /execute store success/result bossbar)
Function IDs (/function, /schedule)
Loot table IDs (/loot ... loot)
Command storage IDs (/data ... storage, /execute if/unless data storage)
Block tags (/execute if/unless block, /clone ... filtered, /fill ... replace)
Item tags (/clear)
Biome tags (/execute if/unless biome, /fillbiome ... replace)
Dimension tags (/execute if/unless in)
Can confirm in 21w03a.