Spider

Spiders are common neutral mobs that have the unique ability to climb walls.

Spawning
Spiders spawn in the Overworld in 3×3×2 space on solid block(s) (they only need 1 solid block beneath) at a light level of 7 or less, in groups of 4. The top blocks can be transparent, but not solid.

In Bedrock Edition, leaves may spawn one spider provided that there are 3×3×2 spaces around it; therefore, forested biomes have a greater amount of spiders. Spiders never spawn in groups greater than 1.



Monster spawners
Spiders have a 25% chance to spawn from monster spawners found in dungeons. They will also spawn from monster spawners in rare hidden rooms in woodland mansions.

Status effects
On hard difficulty, spiders will occasionally spawn with status effects. For each pack spawn, there is a (10&times;clamped regional difficulty)% chance that the game will attempt to apply a status effect. If it decides to do so, then it selects the effect. The spider can spawn with following effects: The effect is then applied to all entities within the pack for the maximum amount of time possible.
 * (40% chance)
 * (20% chance)
 * (20% chance)
 * (20% chance)

This does not apply to cave spiders.

Drops
Spiders drop the following upon their death:
 * 0-2 s
 * (⅓ chance if killed by a player or tamed wolf, and ½ / ⅔ / ¾ chance with Looting I/II/III).
 * 5 experience orbs if killed by a player or tamed wolf.

Behavior
Spiders are hostile to the player and to iron golems as long as the light level immediately around them is 11 or less; otherwise they will not attack unless provoked. Hostile spiders will continue to chase the player even if they are exposed to well-lit locations. If a spider sustains damage from a source other than a direct attack from the player, such as falling, its hostility will be reset.

Spiders can climb up over walls and other obstacles. If a spider cannot find an ideal path to the player (when a player goes behind or on top of a wall), it will get as close as it can to the player's position from the outside or below, and proceed to climb the wall vertically until it gets to the top, even if it loses its aggression towards the player. Additionally, when a spider loses its aggression on the player, it will continue moving forward blindly for about two seconds. This behavior causes the spider to climb up any walls in its path. If a spider tries to go through the world border, it will start climbing the world border instead.

If shot from distance with an arrow when outside detection range, spiders will turn and run in the direction the arrow was fired, essentially towards the player. If the player moves away, the spider will still follow the same path unless the player enters detection range, then the spider will change direction and attack.

Even though spiders do not inflict the Poison status effect, they are immune to it.

Spiders will pounce their targets at close range. A spider that is swimming in 1-block-deep water will pounce nearby enemies upon touching the submerged floor.

Spiders flip and land on their backs when they die, unlike most mobs (which land on their sides).

If Invisibility status effect is applied to a spider, its body will vanish but its eyes will remain visible.

Spiders, being arthropods, are weak against weapons with the Bane of Arthropods enchantment.

Spider jockeys
There is a 1% chance that a spider will spawn with a skeleton riding it, forming a spider jockey. In the Nether, a spider (spawned with a spawn egg, commands or mob spawners, since these do not naturally spawn there) has a 0.8% to spawn a wither skeleton on its back and form a wither jockey instead. In snowy biomes, a spider has a 0.8% to spawn a stray on its back and form a stray jockey instead. A spider jockey can also be spawned by the command.



Data values
Spiders have entity data associated with them that contain various properties of the mob.