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

[Scripting API] getEntitiesFromQuery with position component filter spams script warnings when entity items exist

    XMLWordPrintable

    Details

    • Type: Bug
    • Status: Open
    • Resolution: Unresolved
    • Affects Version/s: 1.9.0.3 Beta
    • Fix Version/s: None
    • Labels:
      None
    • Confirmation Status:
      Unconfirmed
    • Platform:
      Windows 10 - PC
    • VSO:
      166316

      Description

      Expected behavior: code working by filtering out non matching entities without spamming ingame when using filter in query

      Actual behavior: game spammed with script warning messages when items tossed onto ground instead

      Details:

      When using a query that includes the minecraft:position component as a filter, you get "Script Warning: Something went wrong..." messages when running getEntitiesFromQuery for that query.

      Works great for normal living entities, but as soon as you toss an item down the issue happens, can't seem to debug it any further as I don't get any logs in the logs folder nor can I debug warnings via VS attaching to process afaik.

      Example stripped down script:

      https://gist.github.com/Corosauce/251f16e385f744ad53e40d30f96fe3b2

       Screenshot:

        Attachments

          Issue Links

            Activity

              People

              • Reporter:
                corosus Kevin Gagnon
              • Votes:
                0 Vote for this issue
                Watchers:
                2 Start watching this issue

                Dates

                • Created:
                  Updated:
                  CHK: