minecraft:behavior.summon_entity
Allows the mob to attack the player by summoning other entities.
Properties
| Property | Type | Default | What it does |
|---|---|---|---|
summon_choices | List of object | [] | List of spells for the mob to use to summon entities. Each spell has the following parameters: |
min_activation_range | Decimalmin 0 | 1 | Lower bound of the activation distance in blocks for this spell, must not be negative. |
max_activation_range | Decimalmin 0 | 32 | Upper bound of the activation distance in blocks for this spell, must not be negative. |
cooldown_time | Decimal | 0 | Time in seconds the mob has to wait before using the spell again |
weight | Decimal | 0 | The weight of this spell. Controls how likely the mob is to choose this spell when casting one |
do_casting | Boolean | true | If true, the mob will do the casting animations and render spell particles |
particle_color | Text or List of integer | [255, 255, 255, 255] | The color of the particles for this spell |
start_sound_event | Textitem.use.on, hit, step, step.baby, fly, jump, jump.prevent, break, place, heavy.step, gallop, fall, hurt, hurt.baby, hurt.in.water, death, death.baby, death.in.water, death.to.zombie, ambient, ambient.baby, ambient.in.water, ambient.in.air, ambient.tame … | "undefined" | The sound event to play when using this spell |
cast_duration | Decimal | -1 | Time in seconds the spell casting will take |
sequence | List of object | [] | List of steps for the spell. Each step has the following parameters: |
shape | Object | "line" | The base shape of this step. Valid values are circle and line |
base_delay | Decimal | 0 | Amount of time in seconds to wait before this step starts |
delay_per_summon | Decimal | 0 | Amount of time in seconds before each entity is summoned in this step |
num_entities_spawned | Integer | 1 | Number of entities that will be spawned in this step |
entity_type | Text | "" | The entity type of the entities we will spawn in this step |
entity_lifespan | Decimal | -1 | Amount of time in seconds that the spawned entity will be alive for. A value of -1.0 means it will remain alive for as long as it can |
size | Decimal | 1 | The base size of the entity |
target | Object | "self" | The target of the spell. This is where the spell will start (line will start here, circle will be centered here) |
summon_cap | Integer | 0 | Maximum number of summoned entities at any given time |
sound_event | Object | "undefined" | The sound event to play for this step |
summon_event | Text | "" | Event to invoke on each summoned entity on spawn |
summon_cap_radius | Decimal | 0 | |
filters | Object or List of object | {"AND": null, "NOT": null, "OR": null, "all": null, "all_… | Filters allow data objects to specify test criteria which allows their use. Filters can be defined by a single object of type (Filter Test), an array of tests, collection groups, or a combination of these objects. |
test | Text | — | The name of the test to apply. |
subject | Boolean or Integer or Decimal or Text | — | The subject of this filter test. |
operator | Boolean or Integer or Decimal or Text | — | The comparison to apply with 'value'. |
domain | Boolean or Integer or Decimal or Text | — | The domain the test should be performed in. |
value | Boolean or Integer or Decimal or Text | — | The value being compared with the test. |
priority | Integermin 0 | 0 | |
control_flags | List of text | [] |
Example from the game files
This is how vanilla Evoker uses it in Minecraft Bedrock 1.26.60.5:
{
"minecraft:behavior.summon_entity": {
"priority": 2,
"summon_choices": [
{
"cast_duration": 2,
"particle_color": "#FF664D59",
"cooldown_time": 5,
"max_activation_range": 3,
"min_activation_range": 0,
"sequence": [
{
"base_delay": 1,
"shape": "circle",
"num_entities_spawned": 5,
"delay_per_summon": 0,
"entity_lifespan": 1.1,
"entity_type": "minecraft:evocation_fang",
"size": 1.5,
"sound_event": "prepare.attack",
"target": "self"
},
{
"base_delay": 0.15,
"target": "self",
"delay_per_summon": 0,
"num_entities_spawned": 8,
"shape": "circle",
"entity_lifespan": 1.1,
"entity_type": "minecraft:evocation_fang",
"size": 2.5
}
],
"start_sound_event": "cast.spell",
"weight": 3
},
{
"cast_duration": 2,
"particle_color": "#FF664D59",
"cooldown_time": 5,
"min_activation_range": 3,
"sequence": [
{
"base_delay": 1,
"target": "self",
"delay_per_summon": 0.05,
"num_entities_spawned": 16,
"shape": "line",
"entity_lifespan": 1.1,
"entity_type": "minecraft:evocation_fang",
"size": 20
}
],
"start_sound_event": "cast.spell",
"weight": 3
},
{
"cast_duration": 5,
"particle_color": "#FFB3B3CC",
"cooldown_time": 17,
"sequence": [
{
"base_delay": 5,
"entity_type": "minecraft:vex",
"shape": "circle",
"num_entities_spawned": 3,
"summon_cap_radius": 16,
"size": 1,
"sound_event": "prepare.summon",
"summon_cap": 8,
"summon_event": "minecraft:add_damage_timer",
"target": "self"
}
],
"weight": 1
}
]
}
}Used by 1
Vanilla entities with minecraft:behavior.summon_entity 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