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".
Thank you for your report!
I believe this is the same issue as MCPE-40437, so we will resolve and link this ticket as a duplicate.
If you would like to add a vote and any extra information to the main ticket it would be appreciated.
Quick Links:
📓 Issue Guidelines – 💬 Mojang Support – 📧 Suggestions – 📖 Minecraft Wiki