Steps to reproduce the issue
execute the following command:
execute if items @e piglin.* *You will find that the test will pass if a villager’s inventory has items.
Expected result
The test should fail because testing villagers' inventory should use villager.* only instead of piglin.*, although they will map to the same slots.
Actual result
The test passes.
Environment
Windows 11 24H2 26100.7462
Comments 2
I believe this duplicates MC-143716
Please do not mark issues as private, unless your bug report is an exploit or contains information about your username or server.