Mojira Archive
MCPE-41085

getEntitiesFromQuery fires warning upon item pickup

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

Duplicate

Brad Larson

2019-01-27, 06:39 PM

2019-01-30, 04:47 PM

2019-01-30, 04:47 PM

1

0

Unconfirmed

1.9.0.5 Beta

-