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

Item Tags Aren't Queried In Clients Resource Pack

    XMLWordPrintable

    Details

    • Type: Bug
    • Status: Open
    • Resolution: Unresolved
    • Affects Version/s: 1.16.220.50 Beta, 1.16.210.61 Beta, 1.16.210.60 Beta, 1.16.210.59 Beta, 1.16.210.58 Beta, 1.16.210.57 Beta, 1.16.210.56 Beta, 1.16.210.55 Beta, 1.16.210.54 Beta, 1.16.210.53 Beta, 1.16.210.51 Beta, 1.16.210.50 Beta, 1.16.200.57 Beta, 1.16.200.56 Beta, 1.16.200.55 Beta, 1.16.201 Hotfix
    • Fix Version/s: None
    • Confirmation Status:
      Unconfirmed
    • Platform:
      Multiple

      Description

      When attempting to use 'query.equipped_item_any_tag' or 'query.equipped_item_all_tags' in resource pack files. The queries only work for the host, clients will only see what would happen if the query returned false.

      In the screenshots below, an animation is being run from the players resource file to remove the 2D item from the right hand when a tagged item is being held, works for the host but not for the client.

      Steps to Reproduce:

      1. Create a new animation for players
      2. Create a new item with a custom tag
      3. In the resource player file in the animate section of scripts attempt to run the animation when the item is being held with the following line:
      {"anim_name": "query.equipped_item_any_tag('slot.weapon.mainhand', 'tag_name')
      • Hold the item and the animation will work for the host but clients won't see the animation play.
      • Change the query to something like this:
      {"anim_name": "query.get_equipped_item_name == 'item_id'}
      • The animation will now play properly for both host and client

      Expected Results:

      • Item tags are able to be queried in clients resource files

      Actual Behavior:

      • Item tag queries don't function in resource packs for clients

        Attachments

          Activity

            People

            Reporter:
            Gruntastic Gruntastic
            Votes:
            1 Vote for this issue
            Watchers:
            1 Start watching this issue

              Dates

              Created:
              Updated: