Enemy Templates

2files
1figure
3min read
Sheet 18 of 31 · Building

Filesenemies.yml · economy.yml

Fileenemies.ymlFileeconomy.ymlWaves say how many enemies spawn. Templates in enemies.yml say what those enemies are: the base mob, its stats, gear, potion effects, sounds, rewards and how it grows with each wave. Build them by hand or in the Enemy Creator.

The default roster

IdBase mobHealthKill rewardNotes
WALKERZombie16$20The basic shambler.
RUNNERZombie12$25Fast and fragile.
BABY_INFECTEDZombie8$30Small and quick.
ARMORED_WALKERZombie45$45Iron armor.
RIOT_ZOMBIEZombie65$60
BURNING_WALKERHusk30$35
TOXIC_CARRIERZombie34$40
BLOATERZombie70$70Explodes on death.
WRAITHZombie26$55
SHADOW_STALKERZombie38$65
BONE_ARCHERSkeleton24$35Ranged.
WITHER_ARCHERWither Skeleton42$75Ranged.
SWAMP_DROWNEDDrowned36$50
MINER_INFECTEDZombie35$45
HELLHOUNDWolf28$55
HELL_RIDERZombie34$90Rides a HELLHOUND.
DEMOLISHERZombie85$100Explodes on death.
PIGLIN_EXECUTIONERPiglin Brute75$95
TANKZombie145$180
ABOMINATIONZombie260$350Boss.
HOUND_ALPHAWolf180$280Boss.

Bosses and their abilities have their own page: Bosses.

Walkers on wave 1. Each enemy carries its template name above its head.
A pack of Walkers with name tags pushing down a stone corridor toward the player on wave 1

Every template key

Base and stats

KeyDefaultMeaning
entity-typeZOMBIEAny living mob type, such as ZOMBIE, SKELETON, HUSK, WOLF, PIGLIN_BRUTE.
display-nameName above the mob, MiniMessage.
name-visibletrueShow the name at all times.
max-health20Health points.
damage4Melee damage.
speed0.25Movement speed. A vanilla zombie is 0.23.
follow-range35How far it notices players, in blocks.
armor0Armor points.
armor-toughness0Armor toughness.
knockback-resistance00 to 1. At 1 it cannot be pushed.
attack-knockback0Extra knockback on its hits.
scale1.0Body size. 1.5 is tall, 0.5 is tiny.

Looks and behaviour

KeyDefaultMeaning
babyfalseBaby variant, where the mob has one.
glowingfalseOutline visible through walls.
on-firefalseBurning look without taking fire damage.
silentfalseNo vanilla sounds.
invisiblefalseHidden body, gear still visible.
can-pickup-itemsfalseLets the mob pick items up.
mountId of another template this one rides. The mount counts toward the wave too.

Rewards and death

KeyDefaultMeaning
kill-reward-1Money for the kill. -1 uses rewards.kill from economy.yml ($10).
xp-reward0Vanilla XP for the killer.
explode-on-deathfalseExplodes where it dies. No blocks break.
explosion-power2.0Explosion size. TNT is 4.
explosion-firefalseThe explosion sets fires.
death-effects-on-playersPotion effects for every player within 7 blocks of the death.

Scaling

KeyMeaning
health-scaling-per-waveExtra health per wave after the first.
damage-scaling-per-waveExtra damage per wave after the first.
reward-scaling-per-waveExtra kill reward per wave after the first.

Each value is a fraction added per wave: health = max-health × (1 + scaling × (wave - 1)). A Walker with 0.03 has 16 health on wave 1, 20.8 on wave 11 and 25.6 on wave 21. Rewards are rounded to whole dollars.

Gear and effects

equipment:
  helmet: IRON_HELMET
  chestplate: IRON_CHESTPLATE
  leggings: IRON_LEGGINGS
  boots: IRON_BOOTS
  main-hand: IRON_SWORD
  off-hand: SHIELD
  drop-chance: 0.0      # shared by every slot
effects:
  - SPEED:1000000:1:false:false
death-effects-on-players:
  - SLOWNESS:120:1:false:true

Effects are written TYPE:durationTicks:amplifier[:ambient][:particles]. Use a huge duration for something that lasts the mob's whole life.

Sounds

KeyMeaning
hurt-soundPlayed when the mob is shot.
death-soundPlayed where it dies.
ambient-soundPlayed on a loop while it lives.
ambient-sound-interval-ticksGap between ambient plays. Default 80, never below 20.

A full example

enemies:
  ARMORED_WALKER:
    entity-type: ZOMBIE
    display-name: "<gray>Armored Walker"
    max-health: 45.0
    damage: 6.0
    speed: 0.21
    armor: 8.0
    armor-toughness: 2.0
    knockback-resistance: 0.35
    follow-range: 35.0
    equipment:
      helmet: IRON_HELMET
      chestplate: IRON_CHESTPLATE
      leggings: IRON_LEGGINGS
      boots: IRON_BOOTS
      drop-chance: 0.0
    kill-reward: 45
    xp-reward: 2
    health-scaling-per-wave: 0.055
    damage-scaling-per-wave: 0.025

Config keyboss-rounds.boss-idTemplate ids are what waves, mount, summon-id and boss-rounds.boss-id refer to. Your own templates are safe across updates: the config updater never removes entries under enemies.

Loading the index

Enter openUp Down moveEsc close