{{about|the hostile mob summoned by evokers|the passive mob that collects items|Allay|the smithing template|Vex Armor Trim}}
{{Dungeons hatnote|type=mob}}
{{Infobox entity
|image=Vex.gif
|imagecaption=Normal
|image2=Angry Vex.gif
|image2caption=Attacking
| invimage = Vex Spawn Egg
| health = {{hp|14}}
| behavior = Hostile
| damage = 
'''Armed'''<br>
Easy: {{hp|5.5}}<br>Normal: {{hp|9}}<br>Hard: {{hp|13.5}}<br>
'''Unarmed'''<br>
Easy: {{hp|3}}<br>Normal: {{hp|4}}<br>Hard: {{hp|5}}
| size = Height: 0.8 blocks<br>Width: 0.4 blocks
| spawn = Summoned by [[evoker]]s
| equipment = {{ItemLink|Iron Sword}}
| mobtype = [[Monster]]
}}

The '''vex''' is a small flying [[hostile mob]] that wields an [[iron sword]] and is summoned by [[evoker]]s. It attacks by lunging at its target with its sword and is capable of phasing through walls. It is considered a negative counterpart to the [[allay]].

== Spawning ==
The vex only spawns as part of an [[evoker]]'s summoning attack. While summoning, the evoker is surrounded by white [[particles]] and makes a magical, horn-like sound. Then, a group of three vexes appears near the evoker. The evoker can summon additional vexes even if some still remain alive from the last summoning.

== Drops ==
{{IN|java}}, the vex's [[iron sword]] does not drop, because its main hand's {{cd|HandDropChances}} is {{cd|0}}. This is not affected by the Looting enchantment.

{{IN|BE}}, the vex can drop its iron sword with random durability{{info needed|Chance?}}. This is not affected by the Looting enchantment.

{{xp|5}} is dropped when a vex is killed by a player or tamed [[wolf]].

== Behavior ==
Vexes attack players, adult [[villager]]s, [[iron golem]]s, and [[wandering trader]]s if an [[evoker]] summoned them, and any other target as commanded by their summoning evoker (any mob that attacks the evoker accidentally or purposefully, or any mob that illagers naturally attack on sight). They still attack these mobs even when they do not have a weapon, and they deal the same damage. If it has no weapons, a mainhand-unarmed vex raises both of its hands when attacking; an unarmed vex can be spawned with this command {{cmd|/summon vex ~ ~ ~ {} }}. Vexes summoned by a [[monster spawner]], [[spawn egg]], or by the {{cmd|summon}} command don't attack players unless provoked.

If any mob attacks a vex, any vexes in the area become hostile toward it. This includes "Johnny" [[vindicator]]s that attack them, despite both being allied with the illagers.

Vexes are capable of flying through the air and can freely pass through any block, including [[water]] and [[lava]], without taking damage. Vexes can pass through [[bedrock]], meaning it is possible for them to die in the [[void]]. While vexes can pass through blocks easily, honey blocks seem to slow them down. Vexes also can be bounced back when pushed by a slime block.

While attacking, vexes glow red and lunge at their target. They often fly toward the back of their targets and attack from behind, making it difficult to block their attacks with a [[shield]].

Vexes do not count toward the [[bossbar]] during a [[raid]] as they are not considered as raiders by the game. Thus, when a raid is won by the player, some vexes might still be alive and keep attacking the player and villagers.

Vexes summoned by an evoker start taking damage after 30 to 119 seconds and eventually die.{{only|java}} Vexes summoned by a [[monster spawner]], [[spawn egg]], or by the {{cmd|summon}} command do not take damage this way.

A vex does not despawn if it has a custom name or if it is in a block, minecart, or boat. However, it still dies naturally after 30 to 119 seconds, making trapping them without them dying very difficult.

When idle, vexes wander within a 15×11×15 cuboid range centered on their evoker's position, unless summoned by a spawn egg or by the {{cmd|summon}} command. This happens when the vexes killed the mob that their evoker commanded them to.

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

{{SoundTable
| type = java
| {{SoundLine
| sound =Vex idle1.ogg
|sound2=Vex idle2.ogg
|sound3=Vex idle3.ogg
|sound4=Vex idle4.ogg
|subtitle=Vex vexes
|source=hostile
|description=Randomly
|id=entity.vex.ambient
|translationkey=subtitles.entity.vex.ambient
|volume=1.0
|pitch=0.8-1.2
|distance=16}}
| {{SoundLine
|sound=Vex charge1.ogg
|sound2=Vex charge2.ogg
|sound3=Vex charge3.ogg
|subtitle=Vex shrieks
|source=hostile
|description=When a vex is charging at something
|id=entity.vex.charge
|translationkey=subtitles.entity.vex.charge
|volume=1.0
|pitch=1.0
|distance=16}}
| {{SoundLine
|sound=Vex death1.ogg
|sound2=Vex death2.ogg
|subtitle=Vex dies
|source=hostile
|description=When a vex dies
|id=entity.vex.death
|translationkey=subtitles.entity.vex.death
|volume=1.0
|pitch=0.8-1.2
|distance=16}}
| {{SoundLine
|sound=Vex hurt1.ogg
|sound2=Vex hurt2.ogg
|subtitle=Vex hurts
|source=hostile
|description=When a vex is damaged
|id=entity.vex.hurt
|translationkey=subtitles.entity.vex.hurt
|volume=1.0
|pitch=0.8-1.2
| distance = 16
}}
}}

{{Edition|Bedrock}}:
{{SoundTable
| type = bedrock
| {{SoundLine
| sound =Vex idle1.ogg
|sound2=Vex idle2.ogg
|sound3=Vex idle3.ogg
|sound4=Vex idle4.ogg
|source=hostile
|description=Randomly
|id=mob.vex.ambient
|volume=1.0
|pitch=0.8-1.2}}
| {{SoundLine
|sound=Vex charge1.ogg
|sound2=Vex charge2.ogg
|sound3=Vex charge3.ogg
|source=hostile
|description=When a vex is charging at something
|id=mob.vex.charge
|volume=1.0
|pitch=0.8-1.2}}
| {{SoundLine
|sound=Vex death1.ogg
|sound2=Vex death2.ogg
|source=hostile
|description=When a vex dies
|id=mob.vex.death
|volume=1.0
|pitch=0.8-1.2}}
| {{SoundLine
|sound=Vex hurt1.ogg
|sound2=Vex hurt2.ogg
|source=hostile
|description=When a vex is damaged
|id=mob.vex.hurt
|volume=1.0
| pitch = 0.8-1.2
}}
}}

== Data values ==
=== ID ===
{{edition|java}}:
{{ID table
|edition=java
|generatetranslationkeys=y
|displayname=Vex
|spritetype=entity
|nameid=vex
|foot=1}}

{{edition|bedrock}}:
{{ID table
|edition=bedrock
|shownumericids=y
|generatetranslationkeys=y
|displayname=Vex
|spritetype=entity
|nameid=vex
|id=105
|foot=1}}

=== Entity data ===
Vexes 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|Monster Hunter;Monsters Hunted;It Spreads;Take Aim;Arbalistic;A Throwaway Joke;Adventure;Over-Overkill}}

== History ==
{{Needs render|Attacking vexes before [[18w43a]], also before and after {{bug|MC-181925}}|section=1}}

{{HistoryTable
|{{HistoryLine|java}}
|{{HistoryLine||1.11|dev=16w39a|[[File:Vex JE1 BE1.png|32px]] Added vexes.}}
|{{HistoryLine|||dev=16w42a|Vexes have been buffed - their attack [[damage]] has been increased from {{hp|3}} to {{hp|5}} on Easy, from {{hp|4}} to {{hp|9}} on Normal, and from {{hp|6}} to {{hp|13}} on Hard.}}
|{{HistoryLine|||dev=16w43a|Vexes can now cross [[nether portal]]s and [[end portal]]s and move in [[water]].
|Vexes are now able to draw from their own [[loot table]]s.}}
|{{HistoryLine||1.14|dev=18w43a|[[File:Vex JE2 BE2.png|32px]] [[File:Vex Attacking JE2 BE2.png|32px]] [[File:Vex JE2 BE2.gif|32px]] The textures of vexes have been changed.}}
|{{HistoryLine||1.16.2|dev=20w30a|The attack animation of unarmed vexes has been changed.}}
|{{HistoryLine||1.19.3|dev=22w45a|[[File:Vex JE3.png|32px]] [[File:Vex Attacking JE3 BE3.png|32px]] The model and textures of the vex have been updated.
|[[Head]]s equipped by vexes are no longer visible.}}
|{{HistoryLine|||dev=Pre-release 1|[[File:Vex JE4 BE4.png|32px]] The textures of vexes have been slightly changed.}}
|{{HistoryLine||1.19.4|dev=23w03a|Vexes now use a separate charging animation when empty-handed.}}
|{{HistoryLine||1.20.2|dev=23w32a|Evokers evoking vexes or fangs now emit an <code>entity_place</code> [[vibration]] of frequency <code>14</code>.}}

|{{HistoryLine|pocket}}
|{{HistoryLine||1.1.0|dev=alpha 1.1.0.0|[[File:Vex JE1 BE1.png|32px]] Added vexes.}}
|{{HistoryLine|bedrock}}
|{{HistoryLine||1.10.0|dev=beta 1.10.0.3|[[File:Vex JE2 BE2.png|32px]] [[File:Vex Attacking JE2 BE2.png|32px]] The textures of vexes have been changed.
|Vexes are now hostile toward [[wandering trader]]s.|Vexes can now be renamed with a [[name tag]].<ref>{{bug|MCPE-20701}}</ref>}}
|{{HistoryLine||1.11.0|dev=beta 1.11.0.1|Vexes are no longer hostile toward baby [[villager]]s.}}
|{{HistoryLine||1.19.50|dev=Preview 1.19.50.24|[[File:Vex BE3.png|32px]] [[File:Vex Attacking BE3.png|32px]] The model and textures of the vex have been updated.}}
|{{HistoryLine||1.19.60|dev=Preview 1.19.60.22|[[File:Vex JE4 BE4.png|32px]] The textures of vexes have been slightly changed.}}

|{{HistoryLine|console}}
|{{HistoryLine||xbox=TU54|xbone=CU44|ps3=1.52|psvita=1.52|ps4=1.52|wiiu=Patch 24|switch=1.0.4|[[File:Vex JE1 BE1.png|32px]] Added vexes.}}

|{{HistoryLine|new3ds}}
|{{HistoryLine||1.9.19|[[File:Vex JE1 BE1.png|32px]] Added vexes.}}
}}

== Issues ==
{{Issue list}}

== Trivia ==
* Despite their ghostly appearances and their ability to phase through walls, vexes are not [[undead]] [[mob]]s.
* According to JAPPA, the retexturing and remodeling of vexes was a long time in the making due to being requested so much.<ref>{{tweet|JasperBoerstra|1590379143879069697|The Vex model change was requested so much, we planned it a long time ago but could never say anything about it! So happy its out in the open now, I hope you like it. This is the first model revision we've done, so that's very exciting.|November 9, 2022}}</ref>

== Gallery ==
=== Screenshots ===
<gallery>
EvokerSummonsVexes.png|An evoker summoning vexes.
VexAttacks.png|A vex charging at the player.
AngryVexes.png|Two angry vexes flying toward their target, as their master watches.
EvokerAndVexAttack.png|Two vexes attack while their master summons fangs.
Vex Death.png|A dying vex.
Allayandvexcomparation.png|Comparison between the [[allay]] and vex.
Chiwi Vex.jpg|A vex at night.
New Vex.png|A vex at day.
Who's carrying who.jpg|"Who is carrying whom?"<ref>{{Mcnet|minecraft-java-edition-1-19-4|Minecraft Java Edition 1.19.4|March 14, 2023|Staff}}</ref>
</gallery>

=== Textures ===
<gallery class="pixel-image">
Vex (texture).png|Vex texture file.
Vex Charging (texture).png|Vex charging texture file.
Vex (texture) JE2 BE2.png|[[Texture Update]]
Vex (texture) JE1 BE1.png|[[Programmer Art]]
</gallery>

=== Other ===
<gallery>
UnusedVexTextureEarlyRender.png|A vex with hidden pixels revealed by [[Easter eggs#Textures hidden in transparency|disabling the alpha channel]].
</gallery>

=== In other media ===
<gallery>
ExplorationUpdateFull.jpg|Vexes in promotional artwork for the [[Exploration Update]].
Village and Pillage banner.png|Vexes in promotional artwork for the [[Village and Pillage]] Update.
Vex (Dungeons).png|A {{MCD|vex}} as it appears in ''[[Minecraft Dungeons]]''.
Guardian Vex.png|The {{MCD|guardian vex}}, a unique variation that appears in ''Minecraft Dungeons''.
MinecraftMobSquadCover.png|Several vexes as they appear on the cover of ''[[Minecraft: Mob Squad]]''.
MCTheHavenTrialsCover.png|Ditto, on the cover of ''[[Minecraft: The Haven Trials]]''.
Vex Wings.png|[[Character Creator|Vex Wings]], unlocked by completing [[Feeling Ill]].
</gallery>

== References ==
{{reflist}}

== External links ==
*{{Mcnet|meet-vex|Meet the Vex|July 17, 2017|Tom Stone}}

== Navigation ==
{{Navbox mobs}}

[[Category:Hostile mobs]]
[[Category:Monster mobs]]
[[Category:Flying mobs]]

[[cs:Protiva]]
[[de:Plagegeist]]
[[es:Vex]]
[[fr:Vex]]
[[it:Vessante]]
[[ja:ヴェックス]]
[[ko:벡스]]
[[nl:Ergernis]]
[[pl:Dręczyciel]]
[[pt:Vex]]
[[ru:Досаждатель]]
[[th:เวกซ์]]
[[uk:Бісик]]
[[zh:恼鬼]]
