mojira.dev
MC-305134

"villager.*" and "piglin.*" can both test both villagers' and piglins' inventories

  • 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

Please do not mark issues as private, unless your bug report is an exploit or contains information about your username or server.

I believe this duplicates MC-143716

high1145

etanaratsastaja

Confirmed

Platform

Normal

Commands, Inventory

26.1 Snapshot 1

Retrieved