#How to write EntityQueryOption

6 messages · Page 1 of 1 (latest)

quaint ravine
#

(solved)
EntityQueryOptions has been changed from class to interface.
It seems that the writing style has changed in that case, how should I write it to make it work?

I knew

let option = {name: "playername",tags: ["test"]};
const data = [...world.getPlayers(option)];

Does it have to be written this way?

forest raptor
#

Yeah, but you can also just pass in the object directly into the getPlayers function

quaint ravine
#

Understood, thank you.
It's hopeless to think that the whole rewrite process is waiting for me now lol

hollow gate
#

also I prefer to use beta or preview verions of MC bc then u know this thinks soon as u can utin script api release as stable

gaunt cloud
#

@quaint ravine If you have no additional questions, be sure to close your post by right clicking (or long pressing, on mobile) and hitting Close Post

hollow gate