Vex icon

Vex Summon Command Generator

  • Category: hostile
  • Baby variant: no
  • Entity id: minecraft:vex

No other hostile mob ignores level geometry the way a vex does: it flies straight through walls, floors, and ceilings while swinging its iron sword. That single property makes it perfect for haunted houses, cursed libraries, and any encounter where cover is supposed to feel unsafe - and it is exactly why an uncontained vex can also ruin a map, drifting out of the arena and ambushing players three rooms away.

Summoning vexes directly gives you a version the evoker never provides: one with no lifespan timer. Evoker-conjured vexes eventually wither away on their own, but a command-summoned vex lives until something kills it, so you control the encounter's length instead of the decay clock.

Use this builder to name individual spirits, raise health above the fragile default of 14, or pin a no_ai specimen in midair as a floating statue. The generated command is ready for chat, command blocks, or functions.

Example commands

Haunted keep wraith

/summon minecraft:vex ~ ~ ~ {PersistenceRequired:1b,CustomName:"Keep Wraith",CustomNameVisible:1b,Health:30f,attributes:[{id:"minecraft:max_health",base:30}]}

A named spirit with more than double the default 14 health; custom_name_visible keeps the nameplate readable even as it dips through walls.

Glowing hunter you can track through stone

/summon minecraft:vex ~ ~ ~ {Glowing:1b,Silent:1b}

The glowing outline shows through every block the vex phases into, turning its wall-clipping habit into a visible cat-and-mouse mechanic.

Frozen midair statue

/summon minecraft:vex ~ ~ ~ {NoAI:1b,NoGravity:1b}

no_ai stops the flight AI and no_gravity guarantees it stays pinned at spawn height - a cheap ghost decoration for gallery or shrine builds.

The same build across versions

Rows appear only where the output actually changes -- copy the one that matches your world.

Java 1.16

/summon minecraft:vex ~ ~ ~ {PersistenceRequired:1b,CustomName:'{"text":"Keep Wraith"}',CustomNameVisible:1b,Health:30f,Attributes:[{Name:"generic.max_health",Base:30}]}

Java 1.21.4

/summon minecraft:vex ~ ~ ~ {PersistenceRequired:1b,CustomName:'{"text":"Keep Wraith"}',CustomNameVisible:1b,Health:30f,attributes:[{id:"minecraft:max_health",base:30}]}

Java 26.2

/summon minecraft:vex ~ ~ ~ {PersistenceRequired:1b,CustomName:"Keep Wraith",CustomNameVisible:1b,Health:30f,attributes:[{id:"minecraft:max_health",base:30}]}

Bedrock 26.x

/summon minecraft:vex "Keep Wraith" ~ ~ ~
  • Bedrock /summon does not accept Java entity NBT; omitted Health/Attributes, traits (persistent, custom_name_visible).

Worth knowing

  • Vexes fly through solid blocks freely, so sealed arenas do not contain them; use a repeating kill command or a boundary check to keep encounters in bounds.
  • A vex summoned by command has no life-tick decay, unlike evoker-summoned vexes, which begin taking damage once their limited lifespan runs out.
  • The mob flashes red as it winds up its charge attack, giving players a short, learnable tell before the sword hit lands.
  • Vexes spawn holding an iron sword by default and swing it in melee - there is no ranged attack to account for in arena design.
  • With only 14 base health, an unmodified vex dies to a couple of sword swings; their threat comes from numbers and angles, not durability.

FAQ

Do command-summoned vex spirits die on their own like the evoker's do?

No. The decay timer only applies to vexes conjured by an evoker. One you summon yourself persists until killed, so plan a cleanup command for map resets.

How do I keep a vex inside my arena?

You can't wall it in - vexes phase through blocks. Practical options are a leash of repeating teleport commands, a distance-based kill sweep, or simply designing the room so escaping spirits return to attack.

Can I change the sword a vex is holding?

The vanilla vex carries an iron sword as its stock loadout, and this builder keeps that default. Its red charge flash comes from the mob itself, not from the weapon.