Mojira Archive
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.

Unresolved

Alberto López

2022-07-08, 11:24 PM

2025-01-10, 09:09 PM

5

7

Confirmed

738384

1.19.2 Hotfix, 1.19.63, 1.21.51 Hotfix

-