Minecraft wiki entry for Target_selectors, associated text: [type=<entityType>] — Include only targets of the specified entity type or tag.
[type=!<entityType>] — Exclude any targets of the specified entity type or tag.