How to target a entity by it's name Minecraft Bedrock?

How to target a entity by it's name Minecraft Bedrock? - Red Green and Black Dartboard

I am trying to target a entity by its name. Here is the command I a, using: execute @e[type=fishing_hook,name=kill] ~~~ kill @e. My problem is, I got the fishing hook named to 'kill', but this does nothing. If I remove the name=kill it works as expected, anyone know how to select a entity by its name in Minecraft Bedrock?



Best Answer

By using the name argument of a command as you're already doing:

execute @e[name=entityNameHere] tp ~ ~10 ~

However, and unfortunately, the fishing hook can't be given or summoned in Minecraft: Bedrock Edition , and as a result, cannot be named since these are the only commands in Bedrock Edition that enable us to give names to entities.


You can read more about the commands available in Bedrock Edition on DigMinecraft.




Pictures about "How to target a entity by it's name Minecraft Bedrock?"

How to target a entity by it's name Minecraft Bedrock? - White Concrete Stone on Green Grass
How to target a entity by it's name Minecraft Bedrock? - Arrows Pierced on a Target
How to target a entity by it's name Minecraft Bedrock? - Clear Light Bulb on Black Surface



How do you target a named entity in Minecraft?

There is currently no way to target an entity with a multi-word name using a target selector directly. What you can do is rename your dog, e.g. "JackS.

How do you find entity in Minecraft bedrock?

rx and rxm stand for "rotation X maximum" and "rotation X minimum," equivalent to x_rotation in Java Edition.

What does Rxm mean in Minecraft?

The selector \u201c@p\u201d selects the nearest player. Alternatively, you could also use your Minecraft username, but if you run a command from the console you will always be the nearest player. The other target selectors are \u201c@a\u201d for all players, \u201c@r\u201d for a random player, and \u201c@e\u201d will target all entities.



How to target and not-target entities with the kill command




Sources: Stack Exchange - This article follows the attribution requirements of Stack Exchange and is licensed under CC BY-SA 3.0.

Images: Stephen Niemeier, RODNAE Productions, Mikhail Nilov, Pixabay