For example, /execute if entity @e[tag="Test Tag"] returns an "expected end of options" error.
This is inconsistent, as entities themselves can indeed support tags with spaces.
How to reproduce
/summon minecraft:creeper ~ ~ ~ {Tags:["hi there"]}
Try the following
/execute if entity @e[type=creeper,tag=hi there] /execute if entity @e[type=creeper,tag="hi there"]
/tag @e[type=creeper] remove hi there /tag @e[type=creeper] remove "hi there"
Note: The first
/tag
variant is even suggested by the command syntax help
❌ None of these commands is considered valid
Linked issues
is duplicated by 1
Comments 6
Reproduction steps added from MC-135740.
This is a duplicate of the linked report, not a relates to, note "However, neither the tag argument selector nor the /tag command support them." from that report