Pokemon Server Archive
Community Related => Community/Forum News => Topic started by: kjdavitt on August 23, 2015, 06:22:37 pm
-
Recently the server is crashing again probably because there is another chicken farm owned by Geowhiz. I heard this one is similar to Daniel's from Geowhiz.
-
Recently the server is crashing again probably because there is another chicken farm owned by Geowhiz. I heard this one is similar to Daniel's from Geowhiz.
It may be mine
>.>
-
on Spawn
set.$maxChickens: 20
set.$radius: 10
if entity.is.chicken
nearby.entity.chicken.$radius
set.world_tag_murderchickens: world_tag_murderchickens+1
if world_tag_murderchickens > $maxChickens
it.despawn
untag.world.murderchickens
Miiiight work. Not 100% sure, haven't used 'nearby' in a while.
Every time a chicken spawns, loop through every chicken near it in a $radius of 10. Increase a counter per chicken. If the counter goes over 20, kill every chicken after 20 is reached. Now that the chicken has been processed, delete the counter so the next one is ready when it spawns.
-
on Spawn
set.$maxChickens: 20
set.$radius: 10
if entity.is.chicken
nearby.entity.chicken.$radius
set.world_tag_murderchickens: world_tag_murderchickens+1
if world_tag_murderchickens > $maxChickens
it.despawn
untag.world.murderchickens
Miiiight work. Not 100% sure, haven't used 'nearby' in a while.
Every time a chicken spawns, loop through every chicken near it in a $radius of 10. Increase a counter per chicken. If the counter goes over 20, kill every chicken after 20 is reached. Now that the chicken has been processed, delete the counter so the next one is ready when it spawns.
Server is crashing again. Might not be the chickens causing it.