Minecraft wiki entry for Sculk_Shrieker, associated text: If the player that triggered the sculk shrieker is outside the shrieker's range when the shrieking ends, the sculk shrieker does not apply the Darkness effect to any player, and it does not spawn a warden. The player's warning level still increases by 1.