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

getEntitiesFromQuery fires warning upon item pickup

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Duplicate
    • None
    • 1.9.0.5 Beta
    • None
    • Unconfirmed
    • Windows

      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".
       

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

              Created:
              Updated:
              Resolved: