-
Bug
-
Resolution: Unresolved
-
None
-
1.21.51 Hotfix
-
None
-
Unconfirmed
-
Multiple
Title is quite self explanatory. The "hasitem" selector– a component that is used for commands to test whether or not an entity has a specific item– no longer works, unless you strictly specify the location component of the item. It wasn't like this before; it's always been the case that when you didn't specify the location, your hasitem command would default to any valid slot in the entity's inventory; thus when you looked for the held item of an entity, the command used to be able to detect it regardless of whether or not you specified the location. This has always worked just fine before, and thus i believe that a recent update may have caused this bug to occur. The command also seems to work just fine when used on a player (as seen on the video below), but not on any other entity. I used to have many systems that utilized this neat little trick, but now they're all completely broken thanks to this.
The steps to reproduce this issue are shown in the clip below.