Cave Spider

Cave spiders are small, venomous variants of spiders that live in abandoned mineshafts.

Monster spawners
Cave spiders spawn from monster spawners in mineshafts. They are surrounded by cobwebs in corridors.

Drops
When killed, a cave spider will drop
 * 0–2 . The maximum is increased by 1 per level of Looting, for a maximum of 0-5 string with Looting III.
 * 5 when killed by a player or tamed wolf.

They also have a $1/3$ chance of dropping a spider eye 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 cave 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
Cave spiders inherit most of their behavior from regular spiders:
 * Neutral under daylight or in light levels of 9 or above, otherwise they are hostile. However, once they become hostile, light does not affect them.
 * Can climb walls when needed.
 * Attack by leaping at their targeted entity.
 * Are unaffected by cobwebs and poison.
 * Can spawn spider jockeys in the Bedrock Edition.

However, they have some distinctions from regular spiders:
 * Can fit through a space that is one block wide and ½ block tall.
 * Can go through the spaces between two different types of (unconnected) fences.
 * Cannot spawn with status effects.

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

Venom
On normal or hard difficulty, cave spiders inflict upon attacking. On normal difficulty, the poison lasts for 7 seconds and can cause up to damage. On hard difficulty, it lasts for 15 seconds and can cause up to damage. Note that even on hard, poison damage is not taken when health is at.

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

Trivia

 * While a cave spider's hitbox is only 13.9% the volume of a normal spider's, its model's volume is 34.3% as large. The shadow is even larger: compared to the normal spider's shadow it has an area of 49%.
 * If a direct hit from a Splash potion of harming ( Instant Damage II ) it will immediately kill a cave spider.