When attempting to tag things in the vicinity of a moving area_effect_cloud, it will tag all loaded entities in the world, instead of just the ones specified.
Replication: load new world. Summon armor stand tagged as Test. Put this command in function to be run every tick:
/execute as @e[type=armor_stand,tag=test,distance=..5,limit=1] at @s run tag @e[distance=..5] add TagMe
Now run:
/tag @e remove TagMe
All entities have been tagged, when that shouldn't be the case.
Linked issues
duplicates 1
Comments 5
But if I tag a zombie using:
/tag @e[type=zombie,limit=1,sort=nearest] add Tagged
Then do:
/tag @e remove Tagged
It says "Removed from 1 entity".
—
I'm going off this from memory, I'm unable to test that right now. But previously removing a tag from all entities would only show the number of entities that tag was actually removed from.
In that case this duplicates MC-122717
@tryashtar This issue is different.
It IS tagging all entities. Not just thinking it did and returning all entities. If I specify a limit, it doesn't seem to be following it - specifically in /tag.
If I use /scoreboard the bug doesn't replicate. It will affect one entity. The issue is that even though I specify a limited area, it still tags all entities spanning the entire server.
/execute at @e[type=area_effect_cloud,distance=..5,tag=Point] run tag @e[limit=1] add Mob
That will tag all entities, even ones that are 32,000 blocks away. This shouldn't be happening. The bug you referenced may be related, but it's not the same bug. Mine is reporting all entities have been added, and they have been. Even when they shouldn't be.
I think it's just the
that just notify you that you tried to remove the TagMe from all entities since you used @e. Using either of these commands before the remove shouldn't list all entities :