mojira.dev
MC-177977

Commands do not work when the name of the entity is more than one word, such as "Bob Bee'

Commands do not work if the entity (ex. a cow) is named more than one word, such as Bob Bee. Another way to put this is any name with a space in it. For example, in the command /tp @e[name=Bob Bee] (username) to bring Bob Bee to me, the command fails. The game only reads the first part "Bob" and breaks after the space. The command turns red and fails.

A solution to this would be to make the game recognize the [name=...] part and allow 1 or more spaces after that. This would allow names with spaces to be used in commands.

 

 

Another example of a command that it fails in, if I do /execute @e[name=Bob Bee].... and then the rest of the command, it fails because the game doesn't recognize the name, Bob Bee.

Comments 1

Put the name containing the space in quotes.

Michael Phillips

(Unassigned)

Unconfirmed

(Unassigned)

command, mob

1.15.2

Retrieved