mojira.dev
MCPE-158732

Error when using "query.is_item_name_any"

I get this error whenever I try to use "query.is_item_name_any" inside a player's resource pack animation controller:

[Molang][error]-minecraft:player.0.persona-4ac7cdb8065a91fe-0 | Error: query.is_item_name_any called without a specified entity

The error pops up always the first time I enter the world and press the escape key.

I've used it in dozens of places inside an add-on and saw it does not affect the add-on performance.

Steps to reproduce the issue
STEP 1. Use query.is_item_name_any inside a player resource pack animation controller.

I've attached 2 Resource Packs, if you apply any of them to a world and enter it then you'll see the error pops up the first time you press the escape key:

  1. The first attached Resource Pack (named RP_1{}) contains 2 JSON files, they have been taken from the default Vanilla 1.19.2 Resource Pack, and only 2 lines have been modified (the ones that appear with a comment saying "// HERE")

  2. The second attached Resource Pack (named RP_2{}) contains 1 JSON file, it have been taken from the default Vanilla 1.19.2 Resource Pack, and only 2 lines has been modified (the ones that appear with a comment saying "// HERE"). The first of those two lines contains a non-defined variable.

STEP 2. Apply the the Resource Pack to a world, enter the world, and press the escape key.

Attachments

Comments 7

I've also found out about this issue. Today I was changing some custom variables from a resource pack I'm making, and I decided to use this query function as well. Turns out, just by setting up a custom pre-animation variable with this query in it the bug will appear each time a menu character is rendered... as if those weren't considered entities or something. Very odd.
Also, I hope you are having a good day dear person who hopefully reads my comment

I forgot to mention, I'm on the latest version, which is 1.19.41

I'm still making use of this query (query.is_item_name_any), so I can confirm that the same thing still happens in the last release (MC Bedrock 1.19.63), from Windows 10, I've just checked it out โœ”

Please use query.model_scale== 1.0 to configure paper_doll_ renderer to not use query.is_item_name_any

Still effects latest version of Minecraft and Minecraft 1.21.50.26 preview

Thank you for your report!
After consideration, the issue is being closed as Working as Intended.

Please note, that mechanics of the game may change between updates.
Things such as graphics, sounds, world creation, biomes, redstone, villagers, and animals may not work the same in current versions.

Full Version History โ€“ Snapshot Version History โ€“ Feature Requests and Suggestions

Quick Links:
๐Ÿ““ Bug Tracker Guidelines โ€“ ๐Ÿ’ฌ Community Support โ€“ ๐Ÿ“ง Mojang Support (Technical Issues) โ€“ ๐Ÿ“ง Microsoft Support (Account Issues)
๐Ÿ““ Project Summary โ€“ โœ๏ธ Feedback and Suggestions โ€“ ๐Ÿ“– Game Wiki

Alberto Lรณpez

(Unassigned)

738384

Confirmed

Windows

Windows 10

1.19.2 Hotfix, 1.19.63, 1.21.51 Hotfix

Retrieved