#How to execute as all entities in a world

1 messages · Page 1 of 1 (latest)

wind tulip
#

Hi. I'm trying to execute a command as every entity in the world. However when using world.getDimension.getEntities. This creates an array that cant be used immediately with runCommandAsync. I want to know how I could use the array or use an alternative method to execute as every entity

(I also need to make particles spawn in a circle, but thats an entirely bigger problem)

inner hawk
#

do foreach player in the array or for loop

wind tulip
#

I'm still pretty new to scripting, how would I do that?

#

I've never really messed with arrays all too much

patent crow
wind tulip
#

Ah okay