mojira.dev
MC-124087

'name' entity selector is not working properly

The entity selector 'name' (eg: "@e[type=creeper,name=creepy]") is unable to find any entities when used, even if that entity exists.

Discovery: While messing around with the new "facing" command, I created an armor stand named "spawner" (using the command /summon minecraft:armor_stand ~ ~ ~ {CustomName:"{\"text\":\"spawner\"}"} to spawn prototype surface-to-air missiles. When I went to test if an objective I had created was working, the command /scoreboard players add @e[type=armor_stand,name=spawner] spawn 1 returned "No entity was found." I used the command /data merge entity @e[type=armor_stand,limit=1] {CustomNameVisible:1b} to ensure that the armor stand was actually named "spawner".

Intrigued, I tried a series of commands to try to get the selector functional.
/say @e[name=spawner]
/say @e[name="spawner"]
/say @e[name="{\"text\":\"spawner\"}"]
None of them worked.

I then opened up a brand new untouched world and tried the same thing, and still nothing. This is a major bug as this feature is key to any command system with more than a couple of commands.

I was unable to find any duplicates for this bug, so I apologize in advance if there are. Also, the formatting for the commands got severely messed up by the forum software, so they might be hard to read.

Linked issues

Comments 0

No comments.

Timothy Lawrence

(Unassigned)

Unconfirmed

Minecraft 18w01a

Retrieved