Minecraft wiki entry for Target_selectors, associated text: [family=<family>] — Include only targets in the specified type family.
[family=!<family>] — Exclude any targets in the specified type family.