mojira.dev
MCPE-105436

Item Tags Aren't Queried In Clients Resource Pack

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. Download, install and start a new world with the supplied pack (experimental features on)

  2. Find the 'apple' item in the equipment tab (or give yourself the grunt:transform_item' item using the give command)

  3. Hold the item in your hand (DO NOT USE IT, IT WILL CRASH THE GAME) and you will begin to quarter turn over and over

  4. Get someone else in your world (tested with Windows 10 host and Xbox One Client)

  5. The Client won't see you spinning

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

Linked issues

Attachments

Comments 2

Resolving temporarily as Awaiting Response. Could you please attach the add-ons you're using to this ticket?

Added example pack and redid the steps to reproduce

Gruntastic

(Unassigned)

528155

Confirmed

Multiple

add-on, molang, query, resource-pack

1.18.10.27 Beta, 1.18.10.26 Beta, 1.18.0.24 Beta, 1.18.0.22 Beta, 1.18.0.20 Beta, ..., 1.19.11 Hotfix, 1.19.63, 1.20.50.22 Preview, 1.20.50.23 Preview, 1.20.41 Hotfix

Retrieved