Whenever using the hasitem argument to filter out durability items with specific data values (which translates to durability for the item) it fails to detect any players with those items.
How to reproduce:
/give @s leather_helmet 1 2
/give @a[hasitem=
{data=2,item=leather_helmet}] diamondΒ
Expected result:
Gain one diamond
Actual result:
Failed to detect any player
Β
It is worthy to mention that if you use a data value of 0 or lower, then the command does work properly. However, this still doesn't work with other data values. It is also worthy to mention that this issue persists with all items that have durability, not just leather helmets.
Thank you for your report!
We're tracking this issue in MCPE-151920, so this ticket is being resolved and linked as a duplicate.
If you would like to add a vote and any extra information to the main ticket it would be appreciated.
If you haven't already, you might like to make use of the search feature to see if the issue has already been mentioned.
Quick Links:
π Bug Tracker Guidelines β π¬ Community Support β π§ Mojang Support
π Project Summary β βοΈ Feedback and Suggestions β π Game Wiki
-- I am a bot. This action was performed automatically! The ticket was resolved by one of our moderators, and I left this message to give more information to you.