Uploaded image for project: 'Minecraft (Bedrock codebase)'
  1. Minecraft (Bedrock codebase)
  2. MCPE-151920

The command does not evaluate the selector argument "hasitem" -> data.

    XMLWordPrintable

Details

    • Bug
    • Resolution: Unresolved
    • None
    • 1.19.30.22 Preview, 1.19.20.20 Preview, 1.19.10.22 Preview, 1.19.10.21 Preview, 1.19.10.20 Preview, 1.19.0.20 Beta, 1.18.20.23 Beta, 1.18.20.21 Beta, 1.18.30, 1.18.31, 1.19.1 Switch, 1.19.0, 1.19.2 Hotfix, 1.19.10, 1.19.22 Hotfix, 1.19.31 Hotfix, 1.19.41
    • None
    • Confirmed
    • Multiple
    • 770283

    Description

      The command does not evaluate the selector argument "hasitem" -> data.

      Steps to Reproduce:

      1. Obtain blue concrete (data = 11)
      2. Type /testfor @s [hasitem= {item=concrete, data=5}

        ] in the chat

      Observed Results:
      The command successfully finds the player even though the player has concrete with a data value of 11.

      Expected Results:
      The command should not find the player.

      See video below.

      Attachments

        Issue Links

          Activity

            People

              ConMaster2112 ConMaster2112
              Votes:
              22 Vote for this issue
              Watchers:
              18 Start watching this issue

              Dates

                Created:
                Updated:
                CHK: