A vex is a small flying hostile mob with 14 health points (7 hearts) and the identifier minecraft:vex. It carries an iron sword and is immune to fire and lava damage.
An evoker can summon a group of three vexes with a spell, including in woodland mansions and during village raids. In Java Edition the spell gives each vex an owner and a limited-life timer. In Bedrock Edition the summon event starts a damage timer on each vex.
In both editions, vexes summoned by the spell begin taking one point of damage per second after a delay of 30 to 119 seconds. The delay is the time before damage starts. The vex survives until its remaining health runs out or it is killed. The spell's timer is separate from the default behavior of a vex created with a spawn egg.
Vexes fly through solid blocks and can reach a target from behind a wall. During an attack they charge toward the target, flash red and strike in melee.
A Java vex can copy its evoker's target, seek a player independently or retaliate against an attacker. Bedrock's target rules include players, iron golems, wandering traders and adult villagers.
Vexes have no ordinary item loot. In Java Edition the standard iron sword has a zero equipment drop chance. In Bedrock Edition the iron sword comes from a spawn equipment table, separate from death loot. The normal sword has a zero drop chance there as well.
Java Edition can apply default equipment enchantments to a vex's sword when it spawns. Bedrock's equipment table supplies a plain iron sword. Java uses an owner-based target goal, while Bedrock lists eligible targets directly in the vex's behavior definition.