#Make an entity spawn every few minutes in random location within player's scope
1 messages ยท Page 1 of 1 (latest)
have you thought about using spawn rules?
Yes, but ensuring that only a single entity gets spawned and within player's scope is not possible afaik.
Use animations then, you can use math.random_integer in loop delay and start delay
"minecraft:behavior.summon_entity"
Mhm, I could add this component with an event called from behavior animation controller I guess.
What would be the math.random_integer for then?
I mean in this case
the delay
I mean in behavior animation I can just specify on which second I want to execute the commands and then set it to loop true.
I don't think the math query is needed, or is it?
you can use timer, angry or celebration component, they all have a timer
Hmmm, but this would require to have an entity beforehand.
I want to create an airdrop basically.
That will spawn in air, but in the way player will be able to see it.
So, it is near enough, not completely random place in the world.
so use spawn re, there is a delay component, a distance component and a density component, I haven't experimented too much with spawn rules so I can't guarantee that it works as
what does spawn re mean?
Would /spreadplayers do the job for you, shortly after the drop got summoned somewhere?
Spawn rules ๐
How does that work? Each time I tried to select the airdrop entity, it says that the area is too small, but when I enlarge it, it says that again.
send command
Make the area big enough then. ๐
The second range value must be greater than the first.
I think the first one sets min distance between individuals, the second one the range around the xz point.
You should probably execute /spreadplayers at player's position if you're actually using this method