mojira.dev
MC-125170

"@e" selector is suggested for commands that do not allow it

The bug

Commands such as /give, /recipe, and /ban can only affect players, so using an @e selector is invalid and will yield a syntax error unless it contains a type=player parameter.

However they are suggested by the autocompletion. See the attached screenshot.

Attachments

Comments 3

@e[type=player] is (supposed to be) different from @a, as @a includes dead players; so I really feel like it’s intentional; however it could be possible to make it suggest @e[type=player instantly, rather than @e.

You can use @e if you add any restriction to it that will confine it to player (such as type or level)

tryashtar

Nathan Adams

Confirmed

Minecraft 18w06a, Minecraft 18w08b, Minecraft 18w11a, Minecraft 18w16a

Retrieved