Spider

A spider is a neutral mob that uniquely climb walls.

Unlit areas
From one to four spiders spawn in a 3×1×3 free area centered on an opaque block in the overworld at a light level of 0 commonly, except in mushroom fields and deep dark biomes. The block above the spawning space cannot be a full solid block, including transparent ones such as leaves or glass, but non-full blocks, such as soul sand or slabs, are allowed. $$, spiders spawn individually in 3×2×3 empty spaces even above leaves, causing more of them to spawn in forested biomes due to more possible spawning surfaces.

Spawners from natural structures
Spiders spawn from any spawners found in hidden rooms surrounded by cobwebs in woodland mansions or in 25% of dungeons' spawners.

Status effects
Spiders occasionally spawn with status effects in hard difficulty. For each pack spawn, there is a (10&times;clamped regional difficulty)% chance of the game applying a status effect. This does not apply to cave spiders. If it decides to do so, then it selects the effect. The spider can spawn with following effects:
 * (40% chance).
 * (20% chance).
 * (20% chance).
 * (20% chance).

The effect is then applied to all entities within the pack and lasts for 3 years, 4 months, 25 days, 6 hours, 45 minutes and 42.4 seconds, or 2,147,483,647 (231-1) game ticks. Its eyes remain visible if the Invisibility status effect is applied to a spider.

Spider jockeys
There is a 1% chance for a spider to spawn with a skeleton riding it, forming a spider jockey. In the Nether, if a spider is spawned there with a spawn egg, commands or spawners, it has a 0.8% chance to spawn a wither skeleton on its back and form a wither jockey instead. In some of snowy biomes, a spider has a 0.8% chance to spawn a stray on its back and form a stray jockey instead. A spider jockey can also be spawned by the command. The spider controls how both mobs move: the spider acts like a normal spider and the skeleton acts like a normal skeleton, except its movement is determined by the spider it rides upon. The skeleton's arrows can sometimes damage the spider jockey itself if the spider happens to be in the way of the shot.

Drops
A spider drops upon death:
 * 0–2 . The maximum is increased by 1 per level of Looting, for 0-5 string with Looting III.
 * experience orbs when killed by a player or tamed wolf.
 * There is a $1/3$ chance of dropping a when killed by a player or tamed wolf. The maximum amount of spider eyes is increased by 1 per level of Looting. The chance of a spider not dropping any spider eyes can be found using the formula  . For example, Looting III gives a $1/3$ chance of not dropping any spider eyes. All other amounts have an equal chance of occurring.

Behavior
Spiders are immune to the slowing applied when walking through cobwebs and Poison, even though spiders do not inflict the Poison status effect, and they become hostile toward players and iron golems as long as the light level immediately around them is 11 or less; otherwise, spiders do not attack unless attacked. Hostile spiders see up to 16 blocks, continuing to chase even when exposed to well-lit locations. The spider's hostility resets to a neutral state after it sustains damage from a source other than a direct attack, such as falling. An aggressive spider pounces at close range and harms in mid-air even with change from its vertical Y-axis position. The spider also pounces upon touching a submerged floor while swimming in 1-block-deep water.

Spiders climb up solid blocks but do not climb on underside surfaces. A spider pursuing a player or an iron golem can detect them through blocks. If a spider cannot find an ideal path to the enemy due to a wall barring the way, the spider approaches as close as possible to the target's position and proceeds to climb the wall vertically until it gets to the top, even if it loses its aggression toward the target. When a spider loses its aggression, it continues moving forward blindly for two seconds; this behavior causes the spider to climb up any walls in its path.

If shot with arrows when outside of the detection range, a spider turns and runs in the direction from which the arrow was fired. If the player moves away, the spider continues following the same path unless the player enters the detection range, in which case the spider changes direction and attacks.

Spiders flip onto their backs when they die, unlike all other mobs, which land on their sides.

The Bane of Arthropods enchantment inflicts the Slowness effect at a level of IV and deals more damage to spiders.

Sounds
Spiders use the Hostile Creatures sound category for entity-dependent sound events.



ID




Entity data
Spiders have entity data associated with them that contains various properties.




 * See Bedrock Edition level format/Entity format.
 * See Bedrock Edition level format/Entity format.

Trivia

 * Spiders can climb up over the world border, a full boat, a full boat with chest or a shulker in Java Edition.
 * Spiders cannot climb up a magma block in Bedrock Edition.
 * In normal conditions, spiders actually float above the ground, but this is often not noticeable due to the difference between the player's height and a spider's height.
 * When a spider wanders inside an enclosed space, it often climbs up a wall until reaching the ceiling, after which it become stuck, unable to exit the climbing state even if it is attacked or becomes hostile to the player.