mojira.dev
MC-124984

Command syntax help does not recognize invalid tags

The 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

Linked issues

Attachments

Comments 13

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.

3 more comments

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.

[media][media]

Can confirm fixed in 22w11a.

marcono1234

(Unassigned)

Confirmed

Commands

command-syntax-help, datapack-tag

Minecraft 18w06a, Minecraft 18w16a, Minecraft 1.13.1, Minecraft 1.13.2, Minecraft 19w08b, ..., 21w08b, 21w17a, 1.17, 1.17.1, 1.18.1

22w11a

Retrieved