Steps to reproduce
Spawn a piglin, a panda, and a codfish.
/execute @e[family = mob] ~~~ say hi
Expected results
The piglin, panda, and codfish say hi.
Observed results
"No targets matched selector"
Hey, theređź‘‹
When executing a command, we will input the selector, just like @s, @e, @p etc. But I found that @e[family=animal] and @e[family=mob] when selecting entities there's some wrongs.
 For e.g
I tried to run command"/kill @e[family=animal]", the system tell me that "No target be selected" after I entering the command
So on, I found the next selector"/kill @e[family=mob]", I ran the command and the entities all were killed except piglin and panda and so on
The summary is:
"famliy=animal" Can NOT select animal
"family=mob" does NOT including piglin , panda and fish
Expectancy:
Please fix it, the selector runs go wrong causes a confusion I never met, It made me have to use more "family=!" to select my expected entities.
Thanks
🙂
"animal" is not used as a family for any mobs, so adding it would be a feature request. Feature requests should be made on feedback.minecraft.net.
I can confirm that piglin, panda, and fish are missing the "mob" family assignment in the vanilla behavior pack.