Editing
Target selectors
(section)
Jump to navigation
Jump to search
Warning:
You are not logged in. Your IP address will be publicly visible if you make any edits. If you
log in
or
create an account
, your edits will be attributed to your username, along with other benefits.
Anti-spam check. Do
not
fill this in!
===Selecting targets by advancements=== {{exclusive|java|section=yes}} :Filter target selection based on the entity's [[Advancement|advancements]]. This naturally filters out all non-player targets. All advancements are in a single object, with a list of individual advancement IDs between the braces afterward. The values are [[Argument_types#brigadier:bool|true or false]]. For advancements with one criterion, testing for that criterion always gives the same results as testing for the advancement. Cannot duplicate this argument. :<code>[advancements={<''resource location''>=<bool>}]</code> β Include only players with the specified advancements and values. :<code>[advancements={<''resource location''>={<criteria>=<bool>}}]</code> β Include only players with the specified advancement's criteria. :*<code>@a[advancements={story/smelt_iron=true}]</code> β Include only players who have completed the advancement <samp>minecraft:story/smelt_iron</samp>. :*<code>@a[advancements={story/form_obsidian=false}]</code> β Include only players who haven't completed the advancement <samp>minecraft:story/form_obsidian</samp>. :*<code>@a[advancements={story/follow_ender_eye=true}]</code> is the same as <code><nowiki>@a[advancements={story/follow_ender_eye={in_stronghold=true}}]</nowiki></code>. :*<code><nowiki>@a[advancements={adventure/kill_all_mobs={witch=true}}]</nowiki></code> β Include only players who have killed a witch, for the advancement <samp>minecraft:adventure/kill_all_mobs</samp>. {{see also|Commands/advancement}} {{anchor|Selecting targets by predicate}}
Summary:
Please note that all contributions to Kiiw may be edited, altered, or removed by other contributors. If you do not want your writing to be edited mercilessly, then do not submit it here.
You are also promising us that you wrote this yourself, or copied it from a public domain or similar free resource (see
Kiiw:Copyrights
for details).
Do not submit copyrighted work without permission!
Cancel
Editing help
(opens in new window)
Navigation menu
Personal tools
Not logged in
Talk
Contributions
Create account
Log in
Namespaces
Page
Discussion
English
Views
Read
Edit
View history
More
Navigation
Main page
Recent changes
Random page
Help about MediaWiki
Tools
What links here
Related changes
Special pages
Page information