mojira.dev
MC-177975

The /tp command cannot teleport the player to a single entity (ex. a dog named Bark) using /tp (username/@p) @e[name=Bark]

If you want to teleport yourself or another player to a single entity (ex. a dog named Bark, and the only entity with the name Bark) you would do /tp (username) @e[name=Bark]. If there is one targeted entity (dog named Bark), the command should work. Instead, the "@e[name=Bark] command text turns red and the command fails.

On the other hand, if you teleport another entity or multiple other entities to the dog named Bark, it says, "Only one entity is allowed, but the provided selector allows more than one.

Not only is there an error by not allowing the player to even "try" to teleport to a single entity (the player cannot even receive the 'only one entity is allowed...' text if the command fails}, but also, there is only one dog named Bark but the command says there are more than one.

 

 

Also, if I remove the username and just do /tp @e[name=Bark], it allows me to do the command but doesn't actually teleport me.

 

Also, the command DOES work with teleporting the dog named Bark to me, as in /tp @e[name=Bark] (username)

Comments 1

You need to add limit=1. The reason the command doesn't provide a more helpful error (like e.g. /spectate) is because of MC-124137

Michael Phillips

(Unassigned)

Unconfirmed

(Unassigned)

command, mob

1.15.2

Retrieved