mojira.dev
MCPE-159675

hasitem data= not working with armor

So in my world I made some custom armor, and hasitem is working well. But the ANNOYING part is that I CAN'T USE DATA WITH ARMOR!! FIX THIS BUG ALREADY, IT'S BEEN GOING SINCE 1.18.30!!

How to see for yourself: 1.Grab a command block
2. Make it always active and repeat
3. Give yourself armor with data, example: /give @s diamond_boots 1 2
4. Type the command below in the Repeat and Always Active command block:

/execute @p[hasitem={item=diamond_boots,data=2,location=slot.armor.feet}] ~~~ effect @s speed 1 7 true

5. If you don't get speed, you've done it correctly.

Linked issues

Comments 2

Your report does not contain enough information to fully understand or reproduce the problem.
Please include a numbered list of steps along with the Observed and Expected results by Editing the Description above as shown here:

Steps to Reproduce:
1. (list every step exactly, so someone else can reproduce the issue, and try following your list to make sure you can still reproduce the issue yourself)
2.
3.
Observed Results:
(briefly describe what actually happens, including exact message(s) shown)
Expected Results:
(briefly describe what should happen)

(add screenshots or video to help explain the issue)

Please do not use ALL CAPS in bug reports.

This report has been temporarily closed as Awaiting Response. It will automatically reopen when you add information. Please follow the format shown and include all sections (steps, observed, expected). Reports that do not contain all of the requested information and complete steps to reproduce the issue may be closed as Incomplete. For more information please read the Bug Tracker Guidelines.

You may find this Report Creation Form helpful for any future reports you create.

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.

forestboy3333

(Unassigned)

Plausible

Multiple

Nintendo Switch 14.1.2

command, item

1.19.10

Retrieved