mojira.dev
MCPE-244364

Player still uses deprecated Molang query across most of its client side definitions

The Molang query query.get_equipped_item_name was deprecated years ago, with the use of query.is_item_name_any being preferred and encouraged in the official documentation due to its handling of namespaces and changing IDs which the deprecated query lacks.

However, even after all these years, the player’s client entity, animation controllers and render controllers still use the deprecated query, despite the official documentation stating the following:

This type is now deprecated, and no longer in use in the latest versions of Minecraft.

Although their return types are different (some very niche cases still require the deprecated query to work), the use cases greatly overlap, and every single use of it in the vanilla game across all the player files is completely replaceable by the newer query without issues.

The continued use of the deprecated query may cause issues with items that have changed their identifiers at some point (like filled maps, for example) and add-ons that add items with the same name as vanilla items, which is known to happen sometimes.

Linked issues

Comments 1

Confirmed, although fixing this will break several of my maps that use items whose names are filled_map (varying only by namespace) specifically to get that animation without modifying the vanilla one 🙂

[Mod] LateLag

(Unassigned)

Confirmed

Multiple

26.70.24 Preview, 26.60

Retrieved