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 scores=== : <code>[scores={<objective>=<value>,...}]</code> β Filter target selection based on their scores in the specified objectives. All tested objectives are in a single object, separated by commas. Each objective and score value pair is separated by an equals sign. The score values support [[Argument_types#minecraft:int_range|integer ranges]]. Cannot duplicate this argument. :* <code>@e[scores={myscore=10}]</code> β Select all entities with a score in objective ''myscore'' of exactly ten. :* <code>@e[scores={myscore=10..12}]</code> β Select all entities with a score in objective ''myscore'' of between ten and 12 (inclusive). :* <code>@e[scores={myscore=5..}]</code> β Select all entities with a score in objective ''myscore'' of five or greater. :* <code>@e[scores={myscore=..15}]</code> β Select all entities with a score in objective ''myscore'' of 15 or less. :* <code>@e[scores={foo=10,bar=1..5}]</code> β Select all entities with a score in objective ''foo'' of exactly ten, and a score in objective ''bar'' of between one and five (inclusive). : {{IN|bedrock}}, <code>!</code> can be used to invert selection. :*<code>@e[scores={myscore=!10}]</code> β Exclude any entities with a score in objective ''myscore'' of exactly ten. :* <code>@e[scores={myscore=!10..15}]</code> β Exclude any entities with a score in objective ''myscore'' of between ten and 15 (inclusive). {{see also|Scoreboard#Objectives}}
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