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

getEntitiesFromQuery fires warning upon item pickup

    XMLWordPrintable

    Details

    • Type: Bug
    • Status: Resolved
    • Resolution: Duplicate
    • Affects Version/s: 1.9.0.5 Beta
    • Fix Version/s: None
    • Labels:
      None
    • Confirmation Status:
      Unconfirmed
    • Platform:
      Windows 10 - PC

      Description

      using script API, this is how to recreate.  

       

      let serverSystem = server.registerSystem(0, 0);
      let generalQuery = null;
      
      
      // Setup which events to listen for
      serverSystem.initialize = function () {
      generalQuery = this.registerQuery();
      }
      
      
      // per-tick updates
      serverSystem.update = function() {
      let allEntities = this.getEntitiesFromQuery(generalQuery );
      }
      

      run this in the server.js and pick up any item including shot arrows.
      You will get the "Script Error: Something went wrong".
       

        Attachments

          Issue Links

            Activity

              People

              • Reporter:
                panguino Brad Larson
              • Votes:
                1 Vote for this issue
                Watchers:
                0 Start watching this issue

                Dates

                • Created:
                  Updated:
                  Resolved: