A spider is a neutral mob that attacks the player in dark areas. Spiders attack by biting the target, and they can also climb walls and lunge at them. Up to four spiders may spawn in a 3×1×3 space centered on an opaque block in the Overworld at a light level of 0, except in mushroom fields and...
minecraft.fandom.com