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 family=== {{exclusive|bedrock|section=yes}} :Filter target selection based on the entity's [https://docs.microsoft.com/en-us/minecraft/creator/reference/content/entityreference/examples/entityproperties/minecraftproperty_type_family type_family] behavior component. Default values used by the vanilla behavior pack include among others more broad terms like <code>mob</code> and <code>inanimate</code>, as well as more specific families like <code>zombie</code> and <code>skeleton</code>, and single-mob families like <code>wandering_trader</code> and <code>creeper</code>. Multiple family arguments are allowed, and all arguments must be fulfilled for an entity to be selected.{{main|family}} :<code>[family=<family>]</code> β Include only targets in the specified type family. :<code>[family=!<family>]</code> β Exclude any targets in the specified type family. :*<code>@e[family=skeleton]</code> β Select all skeletons, wither skeletons and strays. :*<code>@e[family=mob,family=!monster]</code> β Select all mobs that are not also monsters (so for example cows, chickens, pigs, but not zombies or skeletons). :*<code>@e[family=monster,family=undead]</code> β Select all monsters that are also undead (that includes monsters like zombies and skeletons, but not creepers or endermen). {{anchor|Selecting targets by nbt}}
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