By MauruXx
#244322 The max-entity number in version 1.16.5 is based on both Pokémon and NPCs. On my server, I have the /pokekill command that removes Pokémon, but the number of trainers keeps increasing. Is there a way to prevent them from spawning and remove the ones that have already been generated per player?

User avatar
By SKyTheThunder
#244323 Why are you using the /pokekill command regularly enough for NPCs to become an issue? If it's to regulate spawning, I'd highly recommend adjusting the settings in the "spawning.yml" config file instead. That will be much more performant because you'll save on a bunch of clustered despawn/respawn events, as well as the periodic command execution.
During regular gameplay "wild" NPCs should behave exactly like wild Pokémon and despawn after the same time/at the same distance. Unless explicitly aggravated by methods like the /pokekill command they shouldn't accumulate over time.
JOIN THE TEAM