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

hasitem target selector argument does not detect specific data values on items with durability.

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Duplicate
    • None
    • 1.18.31
    • None
    • Unconfirmed
    • Multiple

      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.

            zeeb zeeb
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

              Created:
              Updated:
              Resolved: