Mojira Archive
MC-55943

/execute tell does /tell as well for every entity the command is executed for

If you use the following command: "/execute @e ~ ~ ~ tell @p Test"
it returns:
"Entity whispers to you: Test
You whisper to (Yourself): Test"
so the Entity you specify tells you "Test"
and you tell yourself "Test".


Alternative explanation:

If you execute the /tell command with an entity (/execute @e[type=Pig] ~ ~ ~ /tell @p ...)
not only the entity whispers to you, you also whisper to yourself (e.g.:
"Pig whispers to you..."
and "You whisper to Zuzu_Typ ..."
what I mean is:
the specified player is the Pig (@e[type=Pig]) and NOT me.
so I shouldn't be whispering to myself.


Updated command for 1.15.2 and 1.16:
/execute as @e[type=!player,limit=1] run tell @p Test

Unresolved

ZuzuTyp

2014-05-27, 05:16 PM

2023-10-12, 06:57 AM

5

7

Confirmed

Commands

Minecraft 14w21b - 23w41aMinecraft 14w21b, Minecraft 1.8.2-pre1, Minecraft 1.8.7, Minecraft 1.8.8, Minecraft 15w31a, Minecraft 1.10.2, Minecraft 16w32b, Minecraft 16w42a, Minecraft 1.12.1, Minecraft 18w03b, 1.15.2, 20w21a, 1.16.4, 20w48a, 21w05b, 1.19.1 Pre-release 4, 23w04a, 23w41a

-