{{Dungeons hatnote|type=mob}}
{{Infobox entity
| invimage = Cave Spider Spawn Egg
| health = {{hp|12}}
| behavior = Neutral (if light level 12 or above)<br>Hostile (if light level 11 or 
below)
| mobtype = [[Arthropod]], [[Monster]]
| damage = Easy: {{hp|2}}<br>Normal: {{hp|2|poisoned=1}}<br>Hard: {{hp|3|poisoned=1}}<br>'''Venom:'''<br>{{hp|1|poisoned=1}} per 1.25 seconds<br>Normal: {{EffectLink|Poison}} for 7 seconds ({{hp|6|poisoned=1|notag=1}})<br>Hard: {{EffectLink|Poison}} for 15 seconds ({{hp|12|poisoned=1|notag=1}})
| size = Height: 0.5 blocks<br>Width: 0.7 blocks
| speed = 0.3
| spawn = 
* {{EnvLink|Mineshaft}}: from [[monster spawner]]s.
* {{EnvLink|Trial Chambers}}: from [[trial spawner]]s.
}}

'''Cave spiders''' are a smaller variant of the [[spider]] that inflict [[Poison]] with their attacks. They are exclusively spawned by [[monster spawner]]s found in [[mineshaft]]s, and [[trial spawner]]s found in [[Trial Chambers|trial chambers]].

== Spawning ==
[[File:SpiderSizeComparison.png|thumb|right|Size of a cave spider (left) compared to a regular spider (right).]]
=== Monster spawners ===
Cave spiders spawn from [[monster spawners]] in [[mineshaft]]s at a [[light]] level of 0. These monster spawners are surrounded by [[cobweb]]s in corridors.

=== Trial spawners ===
Cave spiders have a chance to be selected as the "small melee" mob for [[trial spawner]]s in [[trial chambers]].

== Drops ==
{{See also|Tutorials/Cave spider farming}}
=== On death ===
{{DropsTableHead}}
{{DropsLine|name=String|quantity=0-2|lootingquantity=1}}
{{DropsLine|name=Spider Eye|playerkill=yes|quantity=-1-1|lootingquantity=1}}
{{DropsTableFoot}}
* {{xp|5}} when killed by a [[player]] or tamed [[wolf]].

== Behavior ==
Cave spiders inherit their behavior from [[spider]]s:
* Neutral if under daylight or in [[light]] levels of 12 or above, otherwise hostile toward players and [[iron golem]]s. Once they become hostile, light does not affect them.
* Climb walls when needed and sometimes reach a corner and become stuck in a climbing state, losing mobility and unable to be aggravated.
* Gravitate towards cobwebs.
* Attack by leaping.
* Are unaffected by [[cobweb]]s and [[Poison]].
* Are scared of [[armadillo]]s.

They have some distinctions from regular spiders:
* Can fit through a space that is one [[block]] wide and {{frac|1|2}} block tall.
* Can go through the spaces between two different types of (unconnected) [[fence]]s.
* Cannot spawn with [[status effect]]s.
* Flip 90° upon death{{Only|Bedrock}}<ref>{{bug|MCPE-41417|||Won't Fix}}</ref>

Being [[arthropod]]s, they are weak against weapons with the [[Bane of Arthropods]] enchantment.

=== Poison ===
On Normal or Hard difficulty, cave spiders inflict {{EffectLink|Poison}} upon attacking.<ref>{{Tweet|jeb|109527533149630465|Your health hearts turn yellowish|September 2, 2011}}</ref> On Normal difficulty, the Poison lasts for 7 seconds and causes {{hp|6|poisoned=1}} damage. On Hard difficulty, it lasts for 15 seconds and causes {{hp|12|poisoned=1}}. Poison damage is not taken when the [[player]]'s health is at {{hp|1}}.

== Sounds ==
{{Edition|Java}}:<br>
Cave spiders use the Hostile Creatures sound category for [[Sound#Entity-dependent categories|entity-dependent sound events]].

{{SoundTable
| type = java
| {{SoundLine
| sound =Spider idle1.ogg
|sound2=Spider idle2.ogg
|sound3=Spider idle3.ogg
|sound4=Spider idle4.ogg
|subtitle=Spider hisses <ref group=sound name=LousyEvents>The cave spider reuses all of the spider's sound events instead of having its own, resulting in these somewhat unintuitive subtitles - see {{bug|MC-98316}}</ref>
|source=hostile
|description=Randomly
|id=entity.spider.ambient|idnote=<ref group=sound name=LousyEvents/>
|translationkey=subtitles.entity.spider.ambient|translationkeynote=<ref group=sound name=LousyEvents/>
|volume=1.0
|pitch=0.8-1.2
|distance=16}}
| {{SoundLine
|sound=Spider death.ogg
|subtitle=Spider dies <ref group=sound name=LousyEvents/>
|source=hostile
|description=When a cave spider dies
|id=entity.spider.death|idnote=<ref group=sound name=LousyEvents/>
|translationkey=subtitles.entity.spider.death|translationkeynote=<ref group=sound name=LousyEvents/>
|volume=1.0
|pitch=0.8-1.2
|distance=16}}
| {{SoundLine
|sound=Spider idle1.ogg
|sound2=Spider idle2.ogg
|sound3=Spider idle3.ogg
|sound4=Spider idle4.ogg
|subtitle=Spider hurts <ref group=sound name=LousyEvents/>
|source=hostile
|description=When a cave spider is damaged
|id=entity.spider.hurt|idnote=<ref group=sound name=LousyEvents/>
|translationkey=subtitles.entity.spider.hurt|translationkeynote=<ref group=sound name=LousyEvents/>
|volume=1.0
|pitch=0.8-1.2
|distance=16}}
| {{SoundLine
|sound=Spider step1.ogg
|sound2=Spider step2.ogg
|sound3=Spider step3.ogg
|sound4=Spider step4.ogg
|subtitle=Footsteps
|source=hostile
|description=While a cave spider is walking
|id=entity.spider.step|idnote=<ref group=sound name=LousyEvents/>
|translationkey=subtitles.generic.block.footsteps
|volume=0.15
|pitch=1.0
| distance = 16
}}
}}

{{Edition|Bedrock}}:
{{SoundTable
| type = bedrock
| {{SoundLine
| sound =Spider idle1.ogg
|sound2=Spider idle2.ogg
|sound3=Spider idle3.ogg
|sound4=Spider idle4.ogg
|source=hostile
|description=Randomly
|id=mob.spider.say
|volume=1.0
|pitch=0.8-1.2}}
| {{SoundLine
|sound=Spider death.ogg
|source=hostile
|description=When a cave spider dies
|id=mob.spider.death
|volume=1.0
|pitch=0.8-1.2}}
| {{SoundLine
|type=bedrock
|sound=Spider idle1.ogg
|sound2=Spider idle2.ogg
|sound3=Spider idle3.ogg
|sound4=Spider idle4.ogg
|source=hostile
|description=When a cave spider is damaged
|id=mob.spider.say
|volume=1.0
|pitch=0.8-1.2}}
| {{SoundLine
|sound=Spider step1.ogg
|sound2=Spider step2.ogg
|sound3=Spider step3.ogg
|sound4=Spider step4.ogg
|source=hostile
|description=While a cave spider is walking
|id=mob.spider.step
|volume=0.35
| pitch = 0.9-1.1
}}
}}

== Data values ==
=== ID ===
{{edition|java}}:
{{ID table
|edition=java
|generatetranslationkeys=y
|displayname=Cave Spider
|spritetype=entity
|nameid=cave_spider
|showentitytags=y
|entitytags=arthropod, no_anger_from_wind_charge, sensitive_to_bane_of_arthropods
|foot=1}}

{{edition|bedrock}}:
{{ID table
|edition=bedrock
|shownumericids=y
|generatetranslationkeys=y
|displayname=Cave Spider
|spritetype=entity
|nameid=cave_spider
|id=40
|foot=1}}

=== Entity data ===
Cave spiders have entity data associated with them that contains various properties.

{{el|java}}:
{{main|Entity format}}
{{/ED}}

{{el|bedrock}}:
: See [[Bedrock Edition level format/Entity format]].

== Achievements ==
{{load achievements|Monster Hunter;Overkill;It Spreads;Over-Overkill}}

== Advancements ==
{{load advancements|Adventure;Monster Hunter;Monsters Hunted;It Spreads;Take Aim;Arbalistic;A Throwaway Joke;Over-Overkill }}

== History ==
{{HistoryTable
|{{HistoryLine|java beta}}
|{{HistoryLine||1.8|dev=Pre-release|[[File:Cave Spider JE1 BE1.png|48px]] Added cave spiders.}}
|{{HistoryLine|java}}
|{{HistoryLine||1.0.0|dev=Beta 1.9 Prerelease 2|Cave spiders now drop 0-1 [[spider eye]] when killed by a [[player]] or tamed [[wolf]].
|The cave spider's health points have been reduced from {{hp|20}} to {{hp|12}}.}}
|{{HistoryLine|||dev=Beta 1.9 Prerelease 4|Cave spiders are now immune to the [[Poison]] status effect.
|Cave spiders are now considered [[arthropod]]s.}}
|{{HistoryLine||1.2.1|dev=12w06a|Cave spiders now swim extremely fast with the [[water]] stream toward the [[player]], but seem to be almost not moving against the water stream. 
|Cave spiders can now climb [[ice]] blocks.}}
|{{HistoryLine||1.7.2|dev=1.7|Cave spiders no longer attack after being provoked by players in [[Creative]] mode.}}
|{{HistoryLine||1.8|dev=14w06a|Cave spiders no longer draw a line of sight through opaque [[block]]s.
|Cave spiders have been given the new AI that regular [[spider]]s have received.}}
|{{HistoryLine|||dev=14w11a|Cave spiders now run away from [[creeper]]s that are about to explode.}}
|{{HistoryLine|||dev=unknown|The cave spider's venom is no longer neutralized by [[splash potion]]s of weakness, which may or may not be a bug.}}
|{{HistoryLine||1.8.1|dev=pre1|Cave spiders no longer run away from creepers that are about to explode.}}
|{{HistoryLine||1.11|dev=16w32a|The cave spider's [[entity]] ID has been changed from <code>CaveSpider</code> to <code>cave_spider</code>.}}
|{{HistoryLine||October 16, 2017|link={{tweet|JasperBoerstra|919922884063256576}}|[[File:Cave Spider.png|48px]] [[Jasper Boerstra]] tweets an image of an updated cave spider texture.}}
|{{HistoryLine||1.14|dev=18w43a|[[File:Cave Spider JE2 BE2.png|48px]] The texture of cave spiders has been changed.}}
|{{HistoryLine||1.16|dev=20w10a|[[Firework]] damage now provokes cave spiders.<ref>{{bug|MC-111498||Fireworks and water bottles damage don't make neutral mobs angry or hostile|Fixed}}</ref>}}
|{{HistoryLine||1.19|dev=22w11a|[[File:Cave Spider JE3 BE3.png|48px]] Fixed texture mapping of cave spiders.<ref>{{bug|MC-127885|||Fixed}}</ref>}}
|{{HistoryLine||1.20.3|exp=Update 1.21|dev=23w45a|Cave spiders now spawn in [[trial chambers]] behind the "[[Java Edition 1.21|Update 1.21]]" [[experimental]] [[data pack]].}}
|{{HistoryLine||1.20.5|dev=24w03a|Cave spiders are now scared of [[armadillo]]s when not in a rolled up state.}}
|{{HistoryLine||1.20.5|exp=Update 1.21|dev=24w04a|Cave spiders no longer retaliate against attacks from the [[breeze]].}}

|{{HistoryLine|pocket alpha}}
|{{HistoryLine||v0.11.0|dev=build 1|[[File:Cave Spider JE1 BE1.png|48px]] Added cave spiders with their [[jockey]] variant.}}
|{{HistoryLine||v0.12.1|dev=build 1|Cave spiders now have a walking [[sound]].
|Cave spiders can now spawn with [[wither skeleton]]s riding them when spawning as a [[spider jockey]] in [[the Nether]].
|Cave spiders now drop [[spider eye]]s.}}
|{{HistoryLine||v0.14.0|dev=build 1|Cave spiders can be ridden by baby [[zombie]]s and baby [[zombie villager]]s.}}
|{{HistoryLine||v0.15.0|dev=build 1|Cave spiders can now spawn with [[stray]]s riding them when spawning as a [[spider jockey]] in snowy [[biome]]s with a view of the [[sky]].
|Cave spiders can be ridden by baby [[husk]]s.}} 
|{{HistoryLine|pocket}}
|{{HistoryLine||1.1.0|dev=alpha 1.1.0.0|The cave spider's [[entity]] ID has been changed from <code>cavespider</code> to <code>cave_spider</code>.
|The cave spider's Poison time from attack has been changed to be based on [[difficulty]].}}
|{{HistoryLine|bedrock}}
|{{HistoryLine||1.10.0|dev=beta 1.10.0.3|[[File:Cave Spider JE2 BE2.png|48px]] The texture of cave spiders has been changed.}}
|{{HistoryLine||?|Cave spiders no longer spawn jockeys.}}
|{{HistoryLine||1.19.0|dev=Preview 1.19.0.21|[[File:Cave Spider JE3 BE3.png|48px]] Fixed texture mapping of cave spiders.<ref>{{bug|MC-127885|||Fixed}}</ref>}}
|{{HistoryLine||1.20.60|exp=Update 1.21|dev=Preview 1.20.60.20|Cave spiders now spawn in [[trial chambers]] behind the "[[Bedrock Edition 1.21.0|Update 1.21]]" [[experimental]] toggle.}}
|{{HistoryLine||1.20.70|exp=Armadillo and Wolf Armor|dev=Preview 1.20.70.20|Cave spiders now flee from [[armadillos]] that are not rolled up.}}
|{{HistoryLine||1.20.70|exp=Update 1.21|dev=Preview 1.20.70.21|Cave spiders no longer retaliate against attacks from [[breeze]]s.}}

|{{HistoryLine|console}}
|{{HistoryLine||xbox=TU5|xbone=CU1|ps3=1.00|psvita=1.00|ps4=1.00|wiiu=Patch 1|switch=1.0.1|[[File:Cave Spider JE1 BE1.png|48px]] Added cave spiders. They are as large as regular spiders.}}
|{{HistoryLine||xbox=TU9|The size of cave spiders has been corrected.}}
|{{HistoryLine||xbox=TU12|Cave spiders now swim extremely fast with the [[water]] stream toward the [[player]], but seem to be almost motionless against the water stream. 
|Cave spiders can now climb [[ice]] blocks.}}
|{{HistoryLine||xbox=none|xbone=none|ps3=none|psvita=none|ps4=1.90|wiiu=none|switch=none|[[File:Cave Spider JE2 BE2.png|48px]] The texture of cave spiders has been changed.}}

|{{HistoryLine|new 3ds}}
|{{HistoryLine||0.1.0|[[File:Cave Spider JE1 BE1.png|48px]] Added cave spiders.}}
}}

== Issues ==
{{issue list}}

== 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%.

== Gallery ==
=== Screenshots ===
<gallery>
Cavespider 1.8.png|A cave spider.
Cave Spider Cave.png|A cave spider and its [[monster spawner]].
Yellowhbar.png|The [[health]] bar turns yellow-green when bitten by a cave spider.
Spiders.png|Size comparison between a cave spider and a regular [[spider]].
Cave spider crawl through slab.png|Picture of cave spider going through a 1×1×0.5 [[block]].
4xCaveSpiderSpawner.png|Four cave spider monster spawners generated in close proximity.
Cavespiderleveler.png|Cave spider monster spawner enclosed in an area, able to be safely killed.
Cave spider farming.png|Another cave spider farm generated in a [[mineshaft]].
Cave Spider Mineshaft.jpg|A group of cave spiders trying to swim after the [[player]] in a mineshaft.
LCE large cave spider.png|A cave spider {{in|xbox 360}} before [[TU9]], having the same size as a regular spider.
</gallery>

=== Textures ===
<gallery class="pixel-image">
Cave Spider (texture).png|Cave spider texture file.
Spider (eyes texture) JE1 BE1.png|Spider eyes texture file.
</gallery>

=== In other media ===
<gallery>
LEGO Cave Spider.jpg|[[Lego Minecraft]] Cave Spider.
Cave Spider Plush JINX.jpg|Cave spider plush made by JINX.
Spider Cave Shirt.png|"Spider Cave," an official T-Shirt design.
Cave Spider (Dungeons).png|A [[MCD:Cave Spider|Cave Spider]], as it appears in [[Minecraft Dungeons]].
Cave Spider (Story Mode).png|A [[MCSM:Cave Spider|Cave Spider]], as it appears in [[Minecraft Story Mode]].
</gallery>

== See also ==
* [[Tutorials/Cave spider farming]]

== References ==
{{Reflist}}

== External links ==
*[https://www.minecraft.net/en-us/article/meet-cave-spider Meet the Cave Spider] – Minecraft.net on September 5, 2017
*[[Wikipedia:Poecilotheria metallica|Poecilotheria Metallica]]

== Navigation ==
{{Navbox mobs}}

[[Category:Neutral mobs]]
[[Category:Monster mobs]]
[[Category:Arthropod mobs]]

[[cs:Jeskynní pavouk]]
[[de:Höhlenspinne]]
[[es:Araña de cueva]]
[[fr:Araignée venimeuse]]
[[hu:Bányapók]]
[[ja:洞窟グモ]]
[[ko:동굴 거미]]
[[nl:Grottenspin]]
[[pl:Pająk jaskiniowy]]
[[pt:Aranha das cavernas]]
[[ru:Пещерный паук]]
[[uk:Печерний павук]]
[[zh:洞穴蜘蛛]]
