Skip to main content

AoE cleave

A weapon that hits everything near your target, not just the one you swung at. This recipe shows the key idea of selectorswho: decides who an effect lands on, and @Aoe{r=N} means "every living entity within N blocks."

# content/enchants/cleave.yml
tier: rare
display: "&cCleave"
description: "Strike all foes around your target."
trigger: ATTACK
applies-to: [SWORD, AXE]
group: combat
levels:
1:
chance: 25
effects:
- { DAMAGE: { amount: 2, who: "@Aoe{r=3}" } }
2:
chance: 35
effects:
- { DAMAGE: { amount: 3, who: "@Aoe{r=4}" } }
3:
chance: 45
cooldown: 0
effects:
- { DAMAGE: { amount: 4, who: "@Aoe{r=4}" } }
- { PARTICLE: { particle: CRIT, count: 12 } }
- { MESSAGE: { text: "&cCleave!" } }

How it works

  • DAMAGE deals a flat amount of extra damage.
  • who: "@Aoe{r=4}" redirects it from the default single victim to everyone within 4 blocks of the target (excluding you). The radius grows with level.
  • The @Aoe selector can also filter and cap targets — see below.

Variations

  • Only hit monsters, cap at 5 targets:

    - { DAMAGE: { amount: 4, who: "@Aoe{r=5, filter=MONSTERS, limit=5}" } }
  • Stun the crowd instead of damaging it:

    - { POTION: { effect: SLOWNESS, level: 2, duration: 60, who: "@Aoe{r=4}" } }
  • Spare the one you actually swung at — hit only the crowd around them:

    - { DAMAGE: { amount: 4, who: "@Aoe{r=5, exclude=victim}" } }

See the @Aoe selector for filter (ALL / PLAYERS / MONSTERS / MOBS / ENEMIES / ALLIES), limit, and exclude (none — the default — or victim, which removes the combat victim from the matches).