mojira.dev
MCPE-152221

block item aren't fully supported by hasitem

block item's data values aren't supported by newly added hasitem target selector, which means we can't target green wool, stone solely

How to reproduce:

  • hold a green wool

  • run command

/testfor @s[hasitem={item=wool,data=15} ]
  •  you can target yourself

Expected:

  • you can't target yourself because green wool's data value isn't 15

Linked issues

Comments 3

Thank you for your report!

However, this issue has been temporarily closed as Awaiting Response.

Is this still an issue in the latest version? If yes, can you please add it to the affected versions (or mention it if you are not the reporter)?

This ticket will automatically reopen when you reply.

Quick Links:
📓 Issue Guidelines – 💬 Mojang Support – 📧 Suggestions – 📖 Minecraft Wiki

It's still an issue in the 1.18.31 version. Here's also a little video to show the bug, hope this helps.
Video of the bug

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.

Former user

(Unassigned)

Unconfirmed

Multiple

1.19.10.22 Preview, 1.18.20.23 Beta, 1.19.0

Retrieved