{"id":22929,"date":"2026-07-07T18:36:28","date_gmt":"2026-07-07T18:36:28","guid":{"rendered":"https:\/\/xgamingserver.com\/blog\/minecraft-target-selectors\/"},"modified":"2026-07-07T18:36:28","modified_gmt":"2026-07-07T18:36:28","slug":"minecraft-target-selectors","status":"publish","type":"post","link":"https:\/\/xgamingserver.com\/blog\/minecraft-target-selectors\/","title":{"rendered":"Minecraft Target Selectors Explained (@a @p @e @r @s)"},"content":{"rendered":"\n<p class=\"wp-block-paragraph\">Target selectors are the shorthand that lets a Minecraft command pick <em>who<\/em> or <em>what<\/em> it acts on without typing player names. Instead of <code>\/tp Steve 100 64 100<\/code>, you can write <code>\/tp @p 100 64 100<\/code> and the game resolves the nearest player automatically. This reference covers all six Java Edition selector variables (<code>@p<\/code>, <code>@r<\/code>, <code>@a<\/code>, <code>@e<\/code>, <code>@s<\/code>, <code>@n<\/code>) and every filter argument you can add in square brackets, current for Minecraft Java 26.2.<\/p>\n\n\n\n<p class=\"wp-block-paragraph\">To run any of these, open the chat window by pressing <strong>T<\/strong> (or <strong>\/<\/strong>, which pre-types the slash) and enter a command. On a multiplayer server you can also type commands into the server console without the leading slash. Cheat commands generally require operator\/permission level 2, so make sure cheats are enabled or you are opped. Want to build selectors visually and copy the exact string? Use our free <a href=\"https:\/\/xgamingserver.com\/tools\/minecraft\/target-selector\">Minecraft Target Selector tool<\/a>.<\/p>\n\n\n\n<h2 class=\"wp-block-heading\">The Six Selector Variables at a Glance<\/h2>\n\n\n\n<figure class=\"wp-block-table\"><table><thead><tr><th>Selector<\/th><th>Targets<\/th><th>Default sort \/ limit<\/th><th>Example<\/th><\/tr><\/thead><tbody>\n<tr><td><code>@p<\/code><\/td><td>Nearest player. If tied, the most recently joined player wins.<\/td><td>sort=nearest, limit=1<\/td><td><code>tp @p 100 64 100<\/code><\/td><\/tr>\n<tr><td><code>@r<\/code><\/td><td>A random online player (Java can target a random entity with <code>type=<\/code>).<\/td><td>sort=random, limit=1<\/td><td><code>give @r diamond 1<\/code><\/td><\/tr>\n<tr><td><code>@a<\/code><\/td><td>All online players, <strong>including dead\/respawning<\/strong> players.<\/td><td>sort=arbitrary, no limit<\/td><td><code>gamemode adventure @a<\/code><\/td><\/tr>\n<tr><td><code>@e<\/code><\/td><td>All alive entities in loaded chunks (players, mobs, items, etc.).<\/td><td>sort=arbitrary, no limit<\/td><td><code>kill @e[type=zombie]<\/code><\/td><\/tr>\n<tr><td><code>@s<\/code><\/td><td>The entity that executed the command. Selects nothing if the executor is not an entity.<\/td><td>self only<\/td><td><code>tag @s add marked<\/code><\/td><\/tr>\n<tr><td><code>@n<\/code><\/td><td>Nearest alive entity of <em>any<\/em> type, not just players.<\/td><td>sort=nearest, limit=1<\/td><td><code>data get entity @n<\/code><\/td><\/tr>\n<\/tbody><\/table><\/figure>\n\n\n\n<h2 class=\"wp-block-heading\">Players vs Entities: @a @p @r vs @e @n @s<\/h2>\n\n\n\n<p class=\"wp-block-paragraph\"><code>@a<\/code>, <code>@p<\/code> and <code>@r<\/code> always resolve to <strong>players<\/strong>. In Java you cannot use <code>type=<\/code> to make them target a mob \u2014 that argument only re-types <code>@e<\/code>, <code>@n<\/code> and <code>@s<\/code>. A key gotcha: <code>@a<\/code> includes dead players who are still respawning, whereas <code>@e<\/code> only matches <em>alive<\/em> entities in loaded chunks. So <code>gamemode adventure @a<\/code> catches everyone, but <code>@e[type=player]<\/code> may miss a player mid-respawn.<\/p>\n\n\n\n<p class=\"wp-block-paragraph\"><code>@e<\/code> is the broadest selector and almost always needs narrowing. <code>kill @e[type=zombie]<\/code> removes every zombie, and <code>@e[type=!player]<\/code> targets every non-player entity. <code>@n<\/code> is the entity-aware cousin of <code>@p<\/code> \u2014 <code>@n[type=cow]<\/code> is the nearest cow. <code>@s<\/code> refers only to the command&#8217;s executor and is the backbone of <code>\/execute<\/code> chains: it selects nothing from a command block or the bare server console because neither is an entity, but it <em>can<\/em> select a dead entity.<\/p>\n\n\n\n<h2 class=\"wp-block-heading\">Selector Arguments (Filters)<\/h2>\n\n\n\n<p class=\"wp-block-paragraph\">Arguments go inside square brackets and are combined with logical <strong>AND<\/strong>: <code>@e[type=zombie,distance=..10]<\/code> means zombies <em>and<\/em> within 10 blocks. Java is case-sensitive. Many arguments can be negated with <code>!<\/code> and repeated for multiple exclusions.<\/p>\n\n\n\n<figure class=\"wp-block-table\"><table><thead><tr><th>Argument<\/th><th>Syntax<\/th><th>What it filters<\/th><th>Example<\/th><\/tr><\/thead><tbody>\n<tr><td>type<\/td><td><code>type=<id><\/code> \/ <code>type=!<id><\/code> \/ <code>type=#<tag><\/code><\/td><td>Entity type; <code>#<\/code> for entity-type tag, <code>!<\/code> to exclude (one positive value only).<\/td><td><code>@e[type=creeper]<\/code><\/td><\/tr>\n<tr><td>distance<\/td><td><code>distance=<float range><\/code><\/td><td>Euclidean distance in blocks. Java ranged floats; cannot be negative.<\/td><td><code>@e[distance=5..15]<\/code><\/td><\/tr>\n<tr><td>limit<\/td><td><code>limit=<int><\/code><\/td><td>Max targets returned, applied after sort.<\/td><td><code>@e[type=item,limit=5]<\/code><\/td><\/tr>\n<tr><td>sort<\/td><td><code>sort=nearest|furthest|random|arbitrary<\/code><\/td><td>Order targets are chosen before limit.<\/td><td><code>@a[limit=3,sort=furthest]<\/code><\/td><\/tr>\n<tr><td>x, y, z<\/td><td><code>x=<double>,y=,z=<\/code><\/td><td>Override the search origin (Java: not center-corrected).<\/td><td><code>@e[x=100,y=64,z=200,distance=..10]<\/code><\/td><\/tr>\n<tr><td>dx, dy, dz<\/td><td><code>dx=<double>,dy=,dz=<\/code><\/td><td>Cuboid volume by hitbox intersection from the origin.<\/td><td><code>@e[x=0,y=64,z=0,dx=5,dy=3,dz=5]<\/code><\/td><\/tr>\n<tr><td>tag<\/td><td><code>tag=<str><\/code> \/ <code>tag=!<\/code> \/ <code>tag=<\/code><\/td><td>Custom <code>\/tag<\/code> tags; empty matches no tags, <code>!<\/code> matches any tag.<\/td><td><code>@e[tag=marked,tag=!done]<\/code><\/td><\/tr>\n<tr><td>scores<\/td><td><code>scores={<obj>=<range>}<\/code><\/td><td>Scoreboard objective values (integer or range), ANDed.<\/td><td><code>@a[scores={kills=10..}]<\/code><\/td><\/tr>\n<tr><td>nbt <em>(Java only)<\/em><\/td><td><code>nbt=<SNBT><\/code> \/ <code>nbt=!<SNBT><\/code><\/td><td>Entity NBT match via stringified NBT.<\/td><td><code>@e[type=sheep,nbt={Color:0b}]<\/code><\/td><\/tr>\n<tr><td>gamemode<\/td><td><code>gamemode=survival|creative|adventure|spectator<\/code><\/td><td>Player game mode, negatable.<\/td><td><code>@a[gamemode=!spectator]<\/code><\/td><\/tr>\n<tr><td>name<\/td><td><code>name=<str><\/code> \/ <code>name=!<str><\/code><\/td><td>Exact name (case-sensitive; quote spaces).<\/td><td><code>@e[name=\"My Dog\"]<\/code><\/td><\/tr>\n<tr><td>level<\/td><td><code>level=<int range><\/code><\/td><td>Player experience level.<\/td><td><code>@a[level=30..]<\/code><\/td><\/tr>\n<tr><td>x_rotation<\/td><td><code>x_rotation=<float range><\/code><\/td><td>Head pitch: -90 up, 0 horizon, +90 down.<\/td><td><code>@e[x_rotation=..0]<\/code><\/td><\/tr>\n<tr><td>y_rotation<\/td><td><code>y_rotation=<float range><\/code><\/td><td>Yaw: -180 north, -90 east, 0 south, +90 west.<\/td><td><code>@e[y_rotation=-45..45]<\/code><\/td><\/tr>\n<tr><td>team <em>(Java only)<\/em><\/td><td><code>team=<team><\/code> \/ <code>team=!<\/code> \/ <code>team=<\/code><\/td><td>Scoreboard team; empty = no team.<\/td><td><code>@a[team=red]<\/code><\/td><\/tr>\n<tr><td>advancements <em>(Java only)<\/em><\/td><td><code>advancements={<adv>=<bool>}<\/code><\/td><td>Advancement or criterion completion.<\/td><td><code>@a[advancements={story\/smelt_iron=true}]<\/code><\/td><\/tr>\n<tr><td>predicate <em>(Java only)<\/em><\/td><td><code>predicate=<id><\/code> \/ <code>predicate=!<id><\/code><\/td><td>Data-pack predicate match.<\/td><td><code>@e[predicate=mypack:is_underwater]<\/code><\/td><\/tr>\n<\/tbody><\/table><\/figure>\n\n\n\n<h2 class=\"wp-block-heading\">Sort and Limit: Order Matters<\/h2>\n\n\n\n<p class=\"wp-block-paragraph\"><strong>Sort always runs before limit.<\/strong> That is why default limits pair with default sorts: <code>@p<\/code> and <code>@n<\/code> use <code>sort=nearest, limit=1<\/code>; <code>@r<\/code> uses <code>sort=random, limit=1<\/code>; <code>@a<\/code> and <code>@e<\/code> use <code>sort=arbitrary<\/code> with no limit (arbitrary is the fastest ordering). Override them together \u2014 <code>@e[type=item,limit=5,sort=nearest]<\/code> returns the five closest dropped items, while <code>@a[limit=3,sort=furthest]<\/code> returns the three players farthest from the execution point. You cannot raise <code>@s<\/code> beyond one target.<\/p>\n\n\n\n<h2 class=\"wp-block-heading\">Position, Distance and Volume<\/h2>\n\n\n\n<p class=\"wp-block-paragraph\">By default a selector searches from the command&#8217;s execution position. Override the origin with <code>x<\/code>, <code>y<\/code>, <code>z<\/code> \u2014 in Java these are <strong>not center-corrected<\/strong>, so <code>x=0<\/code> means exactly <code>0.0<\/code>. Combine with <code>distance<\/code> for a sphere (<code>@e[distance=..10]<\/code> = within 10 blocks) or with <code>dx<\/code>\/<code>dy<\/code>\/<code>dz<\/code> for a box. The cuboid spans from <code>(x,y,z)<\/code> to <code>(x+dx, y+dy, z+dz)<\/code> plus one block, and selection is by <strong>hitbox intersection<\/strong>, not entity center. Unspecified d-axes default to 0. For rotation-aware effects, <code>x_rotation<\/code> filters pitch and <code>y_rotation<\/code> filters yaw.<\/p>\n\n\n\n<h2 class=\"wp-block-heading\">Tags, Scores and Data-Driven Filters<\/h2>\n\n\n\n<p class=\"wp-block-paragraph\">For map-making, the most powerful filters are data-driven. <code>tag<\/code> reads custom tags set with <code>\/tag<\/code>: <code>@e[tag=marked]<\/code> matches tagged entities, <code>tag=<\/code> matches entities with <em>no<\/em> tags, and multiple <code>tag=<\/code> arguments are ANDed. <code>scores<\/code> reads scoreboard objectives as ranges \u2014 <code>@a[scores={hp=1..5,mana=10}]<\/code>. Java-only filters include <code>nbt<\/code> (matches a subset of the entity&#8217;s NBT, e.g. <code>@a[nbt={OnGround:true}]<\/code>), <code>team<\/code>, <code>advancements<\/code>, and <code>predicate<\/code>. Note the <code>nbt<\/code> selector still reads <em>entity<\/em> NBT and was unaffected by the 1.20.5 move to item components \u2014 that change only altered item syntax like <code>\/give<\/code>, not selector arguments.<\/p>\n\n\n\n<h2 class=\"wp-block-heading\">How to Run These<\/h2>\n\n\n\n<ul class=\"wp-block-list\">\n<li><strong>Chat:<\/strong> Press <strong>T<\/strong> or <strong>\/<\/strong>, type the command with its leading slash (e.g. <code>\/kill @e[type=zombie]<\/code>), and press Enter. Here <code>@s<\/code> resolves to you.<\/li>\n<li><strong>Command block:<\/strong> Place a command block (obtained with <code>\/give<\/code>), enter the command <em>without<\/em> the slash, and power it. The block is not an entity, so <code>@s<\/code> selects nothing unless run through <code>\/execute as<\/code>.<\/li>\n<li><strong>Server console:<\/strong> Type commands with no leading slash directly into the console. The console has no position or entity, so <code>@p<\/code>\/<code>@e<\/code> resolve relative to the world spawn context and <code>@s<\/code> selects nothing.<\/li>\n<\/ul>\n\n\n\n<p class=\"wp-block-paragraph\">These selectors underpin nearly every command. See our full <a href=\"https:\/\/xgamingserver.com\/blog\/minecraft-commands-list\/\">Minecraft commands list<\/a>, the <a href=\"https:\/\/xgamingserver.com\/blog\/minecraft-give-command\/\">give command guide<\/a>, the <a href=\"https:\/\/xgamingserver.com\/blog\/minecraft-summon-command\/\">summon command guide<\/a>, and <a href=\"https:\/\/xgamingserver.com\/blog\/minecraft-teleport-commands\/\">teleport commands<\/a> for real-world use. Running a server? <a href=\"https:\/\/xgamingserver.com\/minecraft-server-hosting\">XGamingServer Minecraft hosting<\/a> gives you instant console access to test them.<\/p>\n\n\n\n<h2 class=\"wp-block-heading\">Java vs Bedrock Differences<\/h2>\n\n\n\n<p class=\"wp-block-paragraph\">The five core variables exist in both editions, and <code>@n<\/code> (added during the 1.20.5 dev cycle) is available in Java and Bedrock too. The <strong>argument spellings differ<\/strong>, however. Java&#8217;s <code>distance<\/code> becomes Bedrock&#8217;s <code>r<\/code> (max) and <code>rm<\/code> (min); <code>level<\/code> becomes <code>l<\/code>\/<code>lm<\/code>; <code>x_rotation<\/code> becomes <code>rx<\/code>\/<code>rxm<\/code>; <code>y_rotation<\/code> becomes <code>ry<\/code>\/<code>rym<\/code>; and <code>gamemode<\/code> becomes <code>m<\/code> (with shorthands <code>s<\/code>\/0, <code>c<\/code>\/1, <code>a<\/code>\/2, <code>d<\/code>\/5).<\/p>\n\n\n\n<p class=\"wp-block-paragraph\">Bedrock has no <code>sort<\/code> keyword \u2014 it merges limit and sort into <code>c<\/code>, where a positive value takes the nearest N and a negative value the furthest N. Java-only arguments with no Bedrock equivalent are <code>nbt<\/code>, <code>team<\/code>, <code>advancements<\/code>, <code>predicate<\/code> and <code>sort<\/code>. Bedrock-only arguments include <code>family<\/code>, <code>hasitem<\/code>, <code>has_property<\/code> and <code>haspermission<\/code>. Coordinate handling differs too: Java <code>x<\/code>\/<code>y<\/code>\/<code>z<\/code> are not center-corrected, while Bedrock center-corrects integer coordinates. Education Edition adds <code>@c<\/code> and <code>@v<\/code> (agents), and <code>@initiator<\/code> exists in Bedrock\/Education for NPC dialogue.<\/p>\n\n\n\n<h2 class=\"wp-block-heading\">Frequently Asked Questions<\/h2>\n\n\n\n<h3 class=\"wp-block-heading\">What is the difference between @a and @e?<\/h3>\n\n\n\n<p class=\"wp-block-paragraph\"><code>@a<\/code> targets all online players including dead\/respawning ones. <code>@e<\/code> targets all <em>alive<\/em> entities in loaded chunks \u2014 players, mobs, items and more \u2014 so it can include players but excludes anyone mid-respawn. Use <code>@e[type=player]<\/code> only when you specifically want the entity-based view.<\/p>\n\n\n\n<h3 class=\"wp-block-heading\">Why does @p pick the &#8220;most recent&#8221; player in a tie?<\/h3>\n\n\n\n<p class=\"wp-block-paragraph\"><code>@p<\/code> defaults to <code>sort=nearest, limit=1<\/code>. If two players are exactly equidistant from the execution point, the tie-breaker is the one who joined the server most recently.<\/p>\n\n\n\n<h3 class=\"wp-block-heading\">Can I target mobs with @p or @r?<\/h3>\n\n\n\n<p class=\"wp-block-paragraph\">Not in Java. <code>@a<\/code>, <code>@p<\/code> and <code>@r<\/code> always resolve to players, and <code>type=<\/code> cannot change their class. To target the nearest or a random non-player entity, use <code>@n<\/code> or <code>@e<\/code> with a <code>type=<\/code> filter and a sort. (In Java, <code>@r<\/code> can use <code>type=<\/code> for a random non-player entity specifically.)<\/p>\n\n\n\n<h3 class=\"wp-block-heading\">How do I select entities within a specific area?<\/h3>\n\n\n\n<p class=\"wp-block-paragraph\">For a sphere, use <code>distance<\/code>: <code>@e[distance=..10]<\/code>. For a box, set an origin with <code>x<\/code>\/<code>y<\/code>\/<code>z<\/code> and a volume with <code>dx<\/code>\/<code>dy<\/code>\/<code>dz<\/code>: <code>@e[x=0,y=64,z=0,dx=5,dy=3,dz=5]<\/code> selects entities whose hitbox intersects that region.<\/p>\n\n\n\n<h3 class=\"wp-block-heading\">Does @s work in a command block?<\/h3>\n\n\n\n<p class=\"wp-block-paragraph\">No \u2014 <code>@s<\/code> selects nothing when the executor is not an entity, which includes command blocks and the server console. To give a command block an entity executor, run it through <code>\/execute as @e[...] run ...<\/code>, after which <code>@s<\/code> refers to that entity.<\/p>\n\n\n\n<p class=\"wp-block-paragraph\"><strong>Related guides:<\/strong> <a href=\"https:\/\/xgamingserver.com\/blog\/minecraft-target-selectors\/\">target selectors overview<\/a>, <a href=\"https:\/\/xgamingserver.com\/blog\/minecraft-gamerules-list\/\">gamerules list<\/a>, <a href=\"https:\/\/xgamingserver.com\/blog\/minecraft-item-ids\/\">item IDs<\/a>, <a href=\"https:\/\/xgamingserver.com\/blog\/keep-inventory-command-minecraft\/\">keep inventory command<\/a>, and the <a href=\"https:\/\/xgamingserver.com\/blog\/all-minecraft-enchantments-list\/\">Minecraft enchantments list<\/a>. Build any selector instantly with our <a href=\"https:\/\/xgamingserver.com\/tools\/minecraft\/target-selector\">Target Selector tool<\/a>.<\/p>\n","protected":false},"excerpt":{"rendered":"<p>Target selectors are the shorthand that lets a Minecraft command pick who or what it acts on without typing player names. Instead of \/tp Steve 100 64 100, you can write \/tp @p 100 64 100 and the game resolves the nearest player automatically. This reference covers all six Java Edition selector variables (@p, @r, [&hellip;]<\/p>\n","protected":false},"author":2,"featured_media":22930,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"_gspb_post_css":"","_monsterinsights_skip_tracking":false,"_monsterinsights_sitenote_active":false,"_monsterinsights_sitenote_note":"","_monsterinsights_sitenote_category":0,"jetpack_post_was_ever_published":false,"_jetpack_newsletter_access":"","_jetpack_dont_email_post_to_subs":false,"_jetpack_newsletter_tier_id":0,"_jetpack_memberships_contains_paywalled_content":false,"_jetpack_memberships_contains_paid_content":false,"footnotes":"","jetpack_publicize_message":"","jetpack_publicize_feature_enabled":true,"jetpack_social_post_already_shared":true,"jetpack_social_options":{"image_generator_settings":{"template":"highway","default_image_id":0,"font":"","enabled":false},"version":2}},"categories":[19],"tags":[],"class_list":["post-22929","post","type-post","status-publish","format-standard","has-post-thumbnail","hentry","category-minecraft-server-docs"],"blocksy_meta":[],"yoast_head":"<!-- This site is optimized with the Yoast SEO Premium plugin v24.5 (Yoast SEO v26.7) - https:\/\/yoast.com\/wordpress\/plugins\/seo\/ -->\n<title>Minecraft Target Selectors: @a @p @e @r @s<\/title>\n<meta name=\"description\" content=\"Every Minecraft Java target selector (@a @p @e @r @s @n) plus every argument, with syntax, examples and Java vs Bedrock differences.\" \/>\n<meta name=\"robots\" content=\"index, follow, max-snippet:-1, max-image-preview:large, max-video-preview:-1\" \/>\n<link rel=\"canonical\" href=\"https:\/\/xgamingserver.com\/blog\/minecraft-target-selectors\/\" \/>\n<meta property=\"og:locale\" content=\"en_US\" \/>\n<meta property=\"og:type\" content=\"article\" \/>\n<meta property=\"og:title\" content=\"Minecraft Target Selectors Explained (@a @p @e @r @s)\" \/>\n<meta property=\"og:description\" content=\"Every Minecraft Java target selector (@a @p @e @r @s @n) plus every argument, with syntax, examples and Java vs Bedrock differences.\" \/>\n<meta property=\"og:url\" content=\"https:\/\/xgamingserver.com\/blog\/minecraft-target-selectors\/\" \/>\n<meta property=\"og:site_name\" content=\"XGamingServer\" \/>\n<meta property=\"article:publisher\" content=\"https:\/\/web.facebook.com\/xgamingserver69\/\" \/>\n<meta property=\"article:published_time\" content=\"2026-07-07T18:36:28+00:00\" \/>\n<meta name=\"author\" content=\"Hectar Carson\" \/>\n<meta name=\"twitter:card\" content=\"summary_large_image\" \/>\n<meta name=\"twitter:creator\" content=\"@xgamingserver\" \/>\n<meta name=\"twitter:site\" content=\"@xgamingserver\" \/>\n<meta name=\"twitter:label1\" content=\"Written by\" \/>\n\t<meta name=\"twitter:data1\" content=\"Hectar Carson\" \/>\n\t<meta name=\"twitter:label2\" content=\"Est. reading time\" \/>\n\t<meta name=\"twitter:data2\" content=\"7 minutes\" \/>\n<script type=\"application\/ld+json\" class=\"yoast-schema-graph\">{\"@context\":\"https:\/\/schema.org\",\"@graph\":[{\"@type\":\"Article\",\"@id\":\"https:\/\/xgamingserver.com\/blog\/minecraft-target-selectors\/#article\",\"isPartOf\":{\"@id\":\"https:\/\/xgamingserver.com\/blog\/minecraft-target-selectors\/\"},\"author\":{\"name\":\"Hectar Carson\",\"@id\":\"https:\/\/xgamingserver.com\/blog\/#\/schema\/person\/561042c617869348e75abfe16a269f8d\"},\"headline\":\"Minecraft Target Selectors Explained (@a @p @e @r @s)\",\"datePublished\":\"2026-07-07T18:36:28+00:00\",\"mainEntityOfPage\":{\"@id\":\"https:\/\/xgamingserver.com\/blog\/minecraft-target-selectors\/\"},\"wordCount\":1193,\"commentCount\":0,\"publisher\":{\"@id\":\"https:\/\/xgamingserver.com\/blog\/#organization\"},\"image\":{\"@id\":\"https:\/\/xgamingserver.com\/blog\/minecraft-target-selectors\/#primaryimage\"},\"thumbnailUrl\":\"https:\/\/xgamingserver.com\/blog\/wp-content\/uploads\/2026\/07\/minecraft-target-selectors-scaled.jpg\",\"articleSection\":[\"Minecraft\"],\"inLanguage\":\"en-US\",\"potentialAction\":[{\"@type\":\"CommentAction\",\"name\":\"Comment\",\"target\":[\"https:\/\/xgamingserver.com\/blog\/minecraft-target-selectors\/#respond\"]}]},{\"@type\":\"WebPage\",\"@id\":\"https:\/\/xgamingserver.com\/blog\/minecraft-target-selectors\/\",\"url\":\"https:\/\/xgamingserver.com\/blog\/minecraft-target-selectors\/\",\"name\":\"Minecraft Target Selectors: @a @p @e @r @s\",\"isPartOf\":{\"@id\":\"https:\/\/xgamingserver.com\/blog\/#website\"},\"primaryImageOfPage\":{\"@id\":\"https:\/\/xgamingserver.com\/blog\/minecraft-target-selectors\/#primaryimage\"},\"image\":{\"@id\":\"https:\/\/xgamingserver.com\/blog\/minecraft-target-selectors\/#primaryimage\"},\"thumbnailUrl\":\"https:\/\/xgamingserver.com\/blog\/wp-content\/uploads\/2026\/07\/minecraft-target-selectors-scaled.jpg\",\"datePublished\":\"2026-07-07T18:36:28+00:00\",\"description\":\"Every Minecraft Java target selector (@a @p @e @r @s @n) plus every argument, with syntax, examples and Java vs Bedrock differences.\",\"breadcrumb\":{\"@id\":\"https:\/\/xgamingserver.com\/blog\/minecraft-target-selectors\/#breadcrumb\"},\"inLanguage\":\"en-US\",\"potentialAction\":[{\"@type\":\"ReadAction\",\"target\":[\"https:\/\/xgamingserver.com\/blog\/minecraft-target-selectors\/\"]}]},{\"@type\":\"ImageObject\",\"inLanguage\":\"en-US\",\"@id\":\"https:\/\/xgamingserver.com\/blog\/minecraft-target-selectors\/#primaryimage\",\"url\":\"https:\/\/xgamingserver.com\/blog\/wp-content\/uploads\/2026\/07\/minecraft-target-selectors-scaled.jpg\",\"contentUrl\":\"https:\/\/xgamingserver.com\/blog\/wp-content\/uploads\/2026\/07\/minecraft-target-selectors-scaled.jpg\",\"width\":2560,\"height\":1440},{\"@type\":\"BreadcrumbList\",\"@id\":\"https:\/\/xgamingserver.com\/blog\/minecraft-target-selectors\/#breadcrumb\",\"itemListElement\":[{\"@type\":\"ListItem\",\"position\":1,\"name\":\"Home\",\"item\":\"https:\/\/xgamingserver.com\/blog\/\"},{\"@type\":\"ListItem\",\"position\":2,\"name\":\"Minecraft\",\"item\":\"https:\/\/xgamingserver.com\/blog\/category\/minecraft-server-docs\/\"},{\"@type\":\"ListItem\",\"position\":3,\"name\":\"Minecraft Target Selectors Explained (@a @p @e @r @s)\"}]},{\"@type\":\"WebSite\",\"@id\":\"https:\/\/xgamingserver.com\/blog\/#website\",\"url\":\"https:\/\/xgamingserver.com\/blog\/\",\"name\":\"XGamingServer\",\"description\":\"Dedicated Game Server Hosting\",\"publisher\":{\"@id\":\"https:\/\/xgamingserver.com\/blog\/#organization\"},\"potentialAction\":[{\"@type\":\"SearchAction\",\"target\":{\"@type\":\"EntryPoint\",\"urlTemplate\":\"https:\/\/xgamingserver.com\/blog\/?s={search_term_string}\"},\"query-input\":{\"@type\":\"PropertyValueSpecification\",\"valueRequired\":true,\"valueName\":\"search_term_string\"}}],\"inLanguage\":\"en-US\"},{\"@type\":\"Organization\",\"@id\":\"https:\/\/xgamingserver.com\/blog\/#organization\",\"name\":\"XGamingServer\",\"url\":\"https:\/\/xgamingserver.com\/blog\/\",\"logo\":{\"@type\":\"ImageObject\",\"inLanguage\":\"en-US\",\"@id\":\"https:\/\/xgamingserver.com\/blog\/#\/schema\/logo\/image\/\",\"url\":\"https:\/\/xgamingserver.com\/blog\/wp-content\/uploads\/2020\/09\/logo.svg\",\"contentUrl\":\"https:\/\/xgamingserver.com\/blog\/wp-content\/uploads\/2020\/09\/logo.svg\",\"width\":\"1024\",\"height\":\"1024\",\"caption\":\"XGamingServer\"},\"image\":{\"@id\":\"https:\/\/xgamingserver.com\/blog\/#\/schema\/logo\/image\/\"},\"sameAs\":[\"https:\/\/web.facebook.com\/xgamingserver69\/\",\"https:\/\/x.com\/xgamingserver\",\"https:\/\/www.instagram.com\/xgamingserver\/\",\"https:\/\/www.linkedin.com\/company\/xgamingserver\/\",\"https:\/\/www.pinterest.com\/xgamingserver\/\",\"https:\/\/www.youtube.com\/channel\/UCHnOtWxpzaL2r3jM9Jm40EQ\"]},{\"@type\":\"Person\",\"@id\":\"https:\/\/xgamingserver.com\/blog\/#\/schema\/person\/561042c617869348e75abfe16a269f8d\",\"name\":\"Hectar Carson\",\"image\":{\"@type\":\"ImageObject\",\"inLanguage\":\"en-US\",\"@id\":\"https:\/\/xgamingserver.com\/blog\/#\/schema\/person\/image\/\",\"url\":\"https:\/\/secure.gravatar.com\/avatar\/1cbcd42dac6c5f21cb52dd64f03fd442250a15f7bb1ade04e23002eb5b384de5?s=96&d=mm&r=g\",\"contentUrl\":\"https:\/\/secure.gravatar.com\/avatar\/1cbcd42dac6c5f21cb52dd64f03fd442250a15f7bb1ade04e23002eb5b384de5?s=96&d=mm&r=g\",\"caption\":\"Hectar Carson\"}}]}<\/script>\n<!-- \/ Yoast SEO Premium plugin. -->","yoast_head_json":{"title":"Minecraft Target Selectors: @a @p @e @r @s","description":"Every Minecraft Java target selector (@a @p @e @r @s @n) plus every argument, with syntax, examples and Java vs Bedrock differences.","robots":{"index":"index","follow":"follow","max-snippet":"max-snippet:-1","max-image-preview":"max-image-preview:large","max-video-preview":"max-video-preview:-1"},"canonical":"https:\/\/xgamingserver.com\/blog\/minecraft-target-selectors\/","og_locale":"en_US","og_type":"article","og_title":"Minecraft Target Selectors Explained (@a @p @e @r @s)","og_description":"Every Minecraft Java target selector (@a @p @e @r @s @n) plus every argument, with syntax, examples and Java vs Bedrock differences.","og_url":"https:\/\/xgamingserver.com\/blog\/minecraft-target-selectors\/","og_site_name":"XGamingServer","article_publisher":"https:\/\/web.facebook.com\/xgamingserver69\/","article_published_time":"2026-07-07T18:36:28+00:00","author":"Hectar Carson","twitter_card":"summary_large_image","twitter_creator":"@xgamingserver","twitter_site":"@xgamingserver","twitter_misc":{"Written by":"Hectar Carson","Est. reading time":"7 minutes"},"schema":{"@context":"https:\/\/schema.org","@graph":[{"@type":"Article","@id":"https:\/\/xgamingserver.com\/blog\/minecraft-target-selectors\/#article","isPartOf":{"@id":"https:\/\/xgamingserver.com\/blog\/minecraft-target-selectors\/"},"author":{"name":"Hectar Carson","@id":"https:\/\/xgamingserver.com\/blog\/#\/schema\/person\/561042c617869348e75abfe16a269f8d"},"headline":"Minecraft Target Selectors Explained (@a @p @e @r @s)","datePublished":"2026-07-07T18:36:28+00:00","mainEntityOfPage":{"@id":"https:\/\/xgamingserver.com\/blog\/minecraft-target-selectors\/"},"wordCount":1193,"commentCount":0,"publisher":{"@id":"https:\/\/xgamingserver.com\/blog\/#organization"},"image":{"@id":"https:\/\/xgamingserver.com\/blog\/minecraft-target-selectors\/#primaryimage"},"thumbnailUrl":"https:\/\/xgamingserver.com\/blog\/wp-content\/uploads\/2026\/07\/minecraft-target-selectors-scaled.jpg","articleSection":["Minecraft"],"inLanguage":"en-US","potentialAction":[{"@type":"CommentAction","name":"Comment","target":["https:\/\/xgamingserver.com\/blog\/minecraft-target-selectors\/#respond"]}]},{"@type":"WebPage","@id":"https:\/\/xgamingserver.com\/blog\/minecraft-target-selectors\/","url":"https:\/\/xgamingserver.com\/blog\/minecraft-target-selectors\/","name":"Minecraft Target Selectors: @a @p @e @r @s","isPartOf":{"@id":"https:\/\/xgamingserver.com\/blog\/#website"},"primaryImageOfPage":{"@id":"https:\/\/xgamingserver.com\/blog\/minecraft-target-selectors\/#primaryimage"},"image":{"@id":"https:\/\/xgamingserver.com\/blog\/minecraft-target-selectors\/#primaryimage"},"thumbnailUrl":"https:\/\/xgamingserver.com\/blog\/wp-content\/uploads\/2026\/07\/minecraft-target-selectors-scaled.jpg","datePublished":"2026-07-07T18:36:28+00:00","description":"Every Minecraft Java target selector (@a @p @e @r @s @n) plus every argument, with syntax, examples and Java vs Bedrock differences.","breadcrumb":{"@id":"https:\/\/xgamingserver.com\/blog\/minecraft-target-selectors\/#breadcrumb"},"inLanguage":"en-US","potentialAction":[{"@type":"ReadAction","target":["https:\/\/xgamingserver.com\/blog\/minecraft-target-selectors\/"]}]},{"@type":"ImageObject","inLanguage":"en-US","@id":"https:\/\/xgamingserver.com\/blog\/minecraft-target-selectors\/#primaryimage","url":"https:\/\/xgamingserver.com\/blog\/wp-content\/uploads\/2026\/07\/minecraft-target-selectors-scaled.jpg","contentUrl":"https:\/\/xgamingserver.com\/blog\/wp-content\/uploads\/2026\/07\/minecraft-target-selectors-scaled.jpg","width":2560,"height":1440},{"@type":"BreadcrumbList","@id":"https:\/\/xgamingserver.com\/blog\/minecraft-target-selectors\/#breadcrumb","itemListElement":[{"@type":"ListItem","position":1,"name":"Home","item":"https:\/\/xgamingserver.com\/blog\/"},{"@type":"ListItem","position":2,"name":"Minecraft","item":"https:\/\/xgamingserver.com\/blog\/category\/minecraft-server-docs\/"},{"@type":"ListItem","position":3,"name":"Minecraft Target Selectors Explained (@a @p @e @r @s)"}]},{"@type":"WebSite","@id":"https:\/\/xgamingserver.com\/blog\/#website","url":"https:\/\/xgamingserver.com\/blog\/","name":"XGamingServer","description":"Dedicated Game Server Hosting","publisher":{"@id":"https:\/\/xgamingserver.com\/blog\/#organization"},"potentialAction":[{"@type":"SearchAction","target":{"@type":"EntryPoint","urlTemplate":"https:\/\/xgamingserver.com\/blog\/?s={search_term_string}"},"query-input":{"@type":"PropertyValueSpecification","valueRequired":true,"valueName":"search_term_string"}}],"inLanguage":"en-US"},{"@type":"Organization","@id":"https:\/\/xgamingserver.com\/blog\/#organization","name":"XGamingServer","url":"https:\/\/xgamingserver.com\/blog\/","logo":{"@type":"ImageObject","inLanguage":"en-US","@id":"https:\/\/xgamingserver.com\/blog\/#\/schema\/logo\/image\/","url":"https:\/\/xgamingserver.com\/blog\/wp-content\/uploads\/2020\/09\/logo.svg","contentUrl":"https:\/\/xgamingserver.com\/blog\/wp-content\/uploads\/2020\/09\/logo.svg","width":"1024","height":"1024","caption":"XGamingServer"},"image":{"@id":"https:\/\/xgamingserver.com\/blog\/#\/schema\/logo\/image\/"},"sameAs":["https:\/\/web.facebook.com\/xgamingserver69\/","https:\/\/x.com\/xgamingserver","https:\/\/www.instagram.com\/xgamingserver\/","https:\/\/www.linkedin.com\/company\/xgamingserver\/","https:\/\/www.pinterest.com\/xgamingserver\/","https:\/\/www.youtube.com\/channel\/UCHnOtWxpzaL2r3jM9Jm40EQ"]},{"@type":"Person","@id":"https:\/\/xgamingserver.com\/blog\/#\/schema\/person\/561042c617869348e75abfe16a269f8d","name":"Hectar Carson","image":{"@type":"ImageObject","inLanguage":"en-US","@id":"https:\/\/xgamingserver.com\/blog\/#\/schema\/person\/image\/","url":"https:\/\/secure.gravatar.com\/avatar\/1cbcd42dac6c5f21cb52dd64f03fd442250a15f7bb1ade04e23002eb5b384de5?s=96&d=mm&r=g","contentUrl":"https:\/\/secure.gravatar.com\/avatar\/1cbcd42dac6c5f21cb52dd64f03fd442250a15f7bb1ade04e23002eb5b384de5?s=96&d=mm&r=g","caption":"Hectar Carson"}}]}},"jetpack_publicize_connections":[],"jetpack_featured_media_url":"https:\/\/xgamingserver.com\/blog\/wp-content\/uploads\/2026\/07\/minecraft-target-selectors-scaled.jpg","jetpack_sharing_enabled":true,"_links":{"self":[{"href":"https:\/\/xgamingserver.com\/blog\/wp-json\/wp\/v2\/posts\/22929","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/xgamingserver.com\/blog\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/xgamingserver.com\/blog\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/xgamingserver.com\/blog\/wp-json\/wp\/v2\/users\/2"}],"replies":[{"embeddable":true,"href":"https:\/\/xgamingserver.com\/blog\/wp-json\/wp\/v2\/comments?post=22929"}],"version-history":[{"count":0,"href":"https:\/\/xgamingserver.com\/blog\/wp-json\/wp\/v2\/posts\/22929\/revisions"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/xgamingserver.com\/blog\/wp-json\/wp\/v2\/media\/22930"}],"wp:attachment":[{"href":"https:\/\/xgamingserver.com\/blog\/wp-json\/wp\/v2\/media?parent=22929"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/xgamingserver.com\/blog\/wp-json\/wp\/v2\/categories?post=22929"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/xgamingserver.com\/blog\/wp-json\/wp\/v2\/tags?post=22929"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}