minecraft:behavior.swell

Allows the creeper to swell up when a player is nearby. It can only be used by Creepers.

Properties

PropertyTypeDefaultWhat it does
start_distanceDecimal10This mob starts swelling when a target is at least this many blocks away.
stop_distanceDecimal2This mob stops swelling when a target has moved away at least this many blocks.
priorityIntegermin 00
control_flagsList of text[]

Example from the game files

This is how vanilla Creeper uses it in Minecraft Bedrock 1.26.60.5:

{
  "minecraft:behavior.swell": {
    "priority": 2,
    "start_distance": 2.5,
    "stop_distance": 6
  }
}

Used by 1

Vanilla entities with minecraft:behavior.swell in their definition:

Related components