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

Error when using "query.is_item_name_any"

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Unresolved
    • None
    • 1.19.2 Hotfix, 1.19.63, 1.21.51 Hotfix
    • None
    • Confirmed
    • Windows
    • 738384

      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.

            FuRRRaira Alberto López
            Votes:
            5 Vote for this issue
            Watchers:
            7 Start watching this issue

              Created:
              Updated:
              CHK: