Minecraft: Special Characters in Target Selector Arguments

Minecraft: Special Characters in Target Selector Arguments - Photo of Man Wearing Green Combat Uniform Holding Rifle

I'm creating a system so when a player dies, an XPOrb is dropped at that location with a special name then the player can choose to teleport to that named XPOrb if they choose.

This system is already working, but I would like to improve it. Right now the name of that XPOrb is "bob" but I would like to make it something better like a face such as: (ಥ﹏ಥ)

And I'm able to spawn an entity with that custom name, but I'm not able to teleport to it using:

@e[name=(ಥ﹏ಥ)] 

Because Minecraft recognizes some of the characters as invalid they way that I have entered them. I would greatly prefer having this face instead of text for the XPOrb, so it would be a big help if someone knew how to format this properly.

The following commands are the entire list of commands for my system:

/scoreboard objectives add deaths deathCount

/testfor @a[score_deaths_min=1]

/execute @a[score_deaths_min=1] ~ ~ ~ /summon XPOrb ~0 ~0 ~0 {CustomName:bob,CustomNameVisible:1}

/scoreboard players set @a[score_deaths_min=1] deaths 0

Now if the player chooses to teleport to that orb the command is:

/execute @e[name=bob] ~ ~ ~ /tp @p @e[name=bob]





Pictures about "Minecraft: Special Characters in Target Selector Arguments"

Minecraft: Special Characters in Target Selector Arguments - Curling stones and brooms in house
Minecraft: Special Characters in Target Selector Arguments - Free stock photo of accuracy, aim, archery
Minecraft: Special Characters in Target Selector Arguments - Free stock photo of accuracy, accurate, aim



How do you target specific entities in Minecraft?

The @e target selector is used to target all entities in the game. This includes both players and mobs in the world. Notice that in this last example, we have used [type=enderman] to target only enderman. This value is called a target selector argument and allows us to filter the target.

What does @R mean in Minecraft?

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. Entities include everything that isn't a block, like monsters, snowballs, animals, and arrows.

What is the target command Minecraft?

Target selectors are used in commands to select players and entities arbitrarily, without needing to specify an exact player name or a UUID. One or more entities can be selected with a target selector variable, and targets can be filtered from the selection based on certain criteria using the target selector arguments.



Target Selectors | Minecraft Bedrock | Command Augments | dx, dy, dz, r, rm, type, family, l, lm etc




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

Images: Lukas, SHVETS production, Kampus Production, Kampus Production