Mojira Archive
MCM-1650

hasitem does not read data values

  1. Partner Rank
    • 3
  2. Partner Team Reporting
    • Builders Horizon
  3. Verification builds
    • 1.19.73
  4. Summary
    • The command "hasitem" selector does not evaluate the data value supplied.
  5. Impact
    • We are unable to evaluate if players have items with data values in their inventory without huge 200+ line functions.
  1. Repro Steps
    • Step 1: Run /give @s stained_glass 1 5
    • Step 2: RunĀ /say @a[hasitem=\{item=stained_glass,data=14}]
  2. Repro Rate
    • 100% reproduction rate.
  3. Observed Results
    • The player's name is outputted in chat.
  4. Expected Results
    • The command throws an error as no player in the world has Red Stained glass, only Lime Stained Glass.
  5. Screenshots / Videos attached: No
  6. Regression Builds
    • Not known to be working before

Unresolved

jordanparki7

2023-04-08, 02:51 PM

2023-04-10, 11:06 PM

1

0

-

-