Entity Documentation - minecraft:behavior.swell

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

Swell Behavior Properties

Name Default Value Type Description Example Values
priority not set Integer number As priority approaches 0, the priority is increased. The higher the priority, the sooner this behavior will be executed as a goal. Creeper: 2
start_distance 10 Decimal number This mob starts swelling when a target is at least this many blocks away Creeper: 2.5
stop_distance 2 Decimal number This mob stops swelling when a target has moved away at least this many blocks Creeper: 6

Samples

Creeper

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