Hello, I currently have this old outdated code to create a border particle. PHP: for($x = $startX; $x <= $endX; $x++){ addParticle($x, $y, $startZ); addParticle($x, $y, $endZ);}for($z = $startZ + 1; $z < $endZ; $z++){ addParticle($startX, $y, $z); addParticle($endX, $y, $z);} I was wondering if anyone knew of another way to create border particles every 5 blocks away. I currently use the spawn position and determine the distance from it to create my actual border type knock-back which uses the interval $size ($distance) which is set to 100 blocks away from the original spawn point of the world. Any-all help is appreciated. Thanks.
you know creating a border for the whole map despite no one was there will probably waste a lot of cpu right?
So thats why my onMove border will work just fine. I was just wondering how to do the particles. I guess im going to do my second idea.
waste CPU just means extra load and more lag PMMP dont really do well with threads, so you should get higher clock rate or reduce wasted load if you insist you should do something like only spawning border IF players are near it