mojira.dev
MCPE-223877

Command blocks cannot execute on / test for an entity with an item.

when using the commands “testfor” and execute to look for @e[hasitem={item=___} the command always says “no targets matched selector” even when there is an entity with the specified item. These commands work fine with players but not any entities.

Linked issues

Attachments

Comments 2

Yes this is the issue that I have.

I did not realize that specifying the slot would make it work

colewpeirce

(Unassigned)

Unconfirmed

iOS

18.5

1.21.92 Hotfix

Retrieved