There’s a grace period where biome zombies won’t spawn near the player until they leave the area or several hours have passed. You may be able to disable this; I’m not sure. But it would be via modding if you can, so I’ll move your thread to the Modding sub-forum.