minecraft:behavior.swell
Allows the creeper to swell up when a player is nearby. It can only be used by Creepers.
Properties
| Property | Type | Default | What it does |
|---|---|---|---|
start_distance | Decimal | 10 | This mob starts swelling when a target is at least this many blocks away. |
stop_distance | Decimal | 2 | This mob stops swelling when a target has moved away at least this many blocks. |
priority | Integermin 0 | 0 | |
control_flags | List 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
behavior.nearest_attackable_targetbehavior.melee_box_attackbehavior.ranged_attackbehavior.stomp_turtle_eggbehavior.leap_at_targetbehavior.nearest_prioritized_attackable_targetbehavior.aquatic_charge_attackbehavior.charge_held_itembehavior.guardian_attackbehavior.ocelotattackbehavior.slime_attackbehavior.charge_attackbehavior.delayed_attackbehavior.dragonchargeplayerbehavior.dragonflamingbehavior.dragonstrafeplayerbehavior.fire_at_targetbehavior.knockback_roarbehavior.melee_attackbehavior.ram_attackbehavior.roarbehavior.send_eventbehavior.sonic_boombehavior.stomp_attack