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

    • Icon: Bug Bug
    • Resolution: Cannot Reproduce
    • None
    • 1.9.0.3 Beta
    • None
    • Unconfirmed
    • Windows
    • 166316

      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:

            corosus Kevin Gagnon
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

              Created:
              Updated:
              Resolved:
              CHK: