Command syntax help does not recognize invalid tags
Created Issue:
Command syntax help does not recognize invalid tags
Relates to
MC-124727The bug
The command syntax help does not recognize invalid tags.
How to reproduce
Type or copy the following
/clear @s #invalid
Relates to
MC-124727The bug
The command syntax help does not recognize invalid tags.
How to reproduce
Type or copy the following
/clear @s #invalid→
#invalid is not displayed red and there is no error message
Relates to
MC-124727The bug
The command syntax help does not recognize invalid tags.
How to reproduce
Type or copy the following
/clear @s #invalid→
#invalid is not displayed red and there is no error message
relates to
relates to
Did 1.19.2 get added to the affected version list by accident? I can reproduce the issue in 1.18.2, but can no longer in 22w11a. I believe the fix is somehow connected to the fix of MC-124984.
The bug
The command syntax help does not recognize invalid structures, but does recognize invalid biomes.
How to reproduce
Type the following command:
/locate biome invalid
→ invalid biome turns red.
Type the following command:
/locate structure invalid
→
invalid structure doesn't turn red.
It's really confusing why they behave differently




Can confirm for 18w16a
Tags are decided by datapacks, and datapacks are changeable.
For example, if dapatack A contains functions using tag C, but tag C is defined by datapack B, and load datapack A before B, then "unknown" tag C shouldn't be seen invalid before loading datapack B.
Invalid function names, recipe names and advancements can't be recognized, too.
But I think I should recognize invalid tags when inputing commands in chat or cmdblocks.
I thinks you'd better add a tag to this issue: brigadier
In 19w14a the invalid tag will lead to an error message. It won't show up as red text though.
Can confirm in 20w51a.
Can confirm in 21w06a.
Can confirm in 1.16.5 and 21w08b. I'd just like to add on that in both 1.16.5 and 21w08b, the command syntax help will not show up in red however, upon running the command, you will receive the following error message:
Unknown item tag 'minecraft:invalid'This report states that there is no error message upon running this command, however now there is, so it's probably best to update this ticket accordingly.
Can confirm in 21w17a.
Can confirm in 1.17.
Can confirm in 1.17.1. Video attached.
Can confirm in 1.18.1.
This issue was present in 1.18.2, but no longer occurs in versions above or equal to 22w11a, meaning that this issue was fixed in 22w11a. To reinforce my claims, I've attached two screenshots, one of which demonstrates the behavior in 1.18.2, and the other in 22w11a.
MC-124984 - Behavior in 1.18.2.png

MC-124984 - Behavior in 21w11a (Fixed).png
Can confirm fixed in 22w11a.