Mojira Archive
MCPE-152628

Piglin, piglin brute, goat, panda, and fish are not assigned "mob" type_family

Steps to reproduce

  1. Spawn a piglin, a panda, and a codfish.
  2. /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

  1. I tried to run command"/kill @e[family=animal]", the system tell me that "No target be selected" after I entering the command
  2. 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

Unresolved

YihuJiu

2022-02-20, 01:19 PM

2025-01-01, 02:45 AM

10

2

Confirmed

724944

1.19.40.23 Preview, 1.18.12 Hotfix, 1.19.30, 1.20.41 Hotfix

-