Mojira Archive
MC-121735

Using /tag add or remove if some entities already have the tag shows that it was successful for all

The bug

Since 17w45a you cannot add a tag to an entity twice. Instead you get the error "Target either already has the tag or has too many tags".
However, when trying to add a tag for a group of entities of which some already have it shows it was added successfully for all of them.

Same for /tag <targets> remove respectively.

How to reproduce

  1. Summon an armor stand with a tag
    /summon armor_stand ~ ~ ~ {Tags:["test"]}
    
  2. Try to add the tag to the armor stand again
    /tag @e[type=armor_stand] add test
    

    → It fails as expected ("Target either already has the tag or has too many tags")

  3. Summon a second armor stand without the tag
    /summon armor_stand
    
  4. Try to add the tag to the armor stands
    /tag @e[type=armor_stand] add test
    

    → It says it added the tags to both entities ("Added tag 'test' to 2 entities")

Duplicate

Marcono1234

[Mojang] Nathan Adams

2017-11-09, 07:29 PM

2017-12-01, 01:59 AM

2017-12-01, 01:59 AM

1

1

Confirmed

/tag, command-feedback

Minecraft 17w45a, Minecraft 17w45b

-