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

data values aren't supported fully by hasitem

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Duplicate
    • None
    • 1.18.20.23 Beta, 1.18.31
    • None
    • Unconfirmed
    • Multiple

      Newly added hasitem target selector does't process data values in some conditions.

      Using [hasitem=\{item=potion}] can only target water bottle, instead of targeting all potions. And commands like /me @s[hasitem=\{item=potion}] directly crash the game

      How to reproduce 1:

      • hold a potion item (not a water bottle)
      • run command /testfor @s[hasitem=\{item=potion}]
      • you can't find yourself

      Expected:

      • you can target yourself because you have a potion.

      How to reproduce 2:

      • hold a potion item (not a water bottle)
      • run command /me [hasitem=\{item=potion}]
      • Game crashes

      Expected:

      • you can target yourself because you have a potion.

      block item's data values aren't supported, which means we can't target green wool, stone solely

            Chixvv Dl
            Votes:
            1 Vote for this issue
            Watchers:
            2 Start watching this issue

              Created:
              Updated:
              Resolved: