minecraft:behavior.summon_entity

Allows the mob to attack the player by summoning other entities.

Properties

PropertyTypeDefaultWhat it does
summon_choicesList of object[]List of spells for the mob to use to summon entities. Each spell has the following parameters:
min_activation_rangeDecimalmin 01Lower bound of the activation distance in blocks for this spell, must not be negative.
max_activation_rangeDecimalmin 032Upper bound of the activation distance in blocks for this spell, must not be negative.
cooldown_timeDecimal0Time in seconds the mob has to wait before using the spell again
weightDecimal0The weight of this spell. Controls how likely the mob is to choose this spell when casting one
do_castingBooleantrueIf true, the mob will do the casting animations and render spell particles
particle_colorText or List of integer[255, 255, 255, 255]The color of the particles for this spell
start_sound_eventTextitem.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_durationDecimal-1Time in seconds the spell casting will take
sequenceList of object[]List of steps for the spell. Each step has the following parameters:
shapeObject"line"The base shape of this step. Valid values are circle and line
base_delayDecimal0Amount of time in seconds to wait before this step starts
delay_per_summonDecimal0Amount of time in seconds before each entity is summoned in this step
num_entities_spawnedInteger1Number of entities that will be spawned in this step
entity_typeText""The entity type of the entities we will spawn in this step
entity_lifespanDecimal-1Amount 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
sizeDecimal1The base size of the entity
targetObject"self"The target of the spell. This is where the spell will start (line will start here, circle will be centered here)
summon_capInteger0Maximum number of summoned entities at any given time
sound_eventObject"undefined"The sound event to play for this step
summon_eventText""Event to invoke on each summoned entity on spawn
summon_cap_radiusDecimal0
filtersObject 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.
testText—The name of the test to apply.
subjectBoolean or Integer or Decimal or Text—The subject of this filter test.
operatorBoolean or Integer or Decimal or Text—The comparison to apply with 'value'.
domainBoolean or Integer or Decimal or Text—The domain the test should be performed in.
valueBoolean or Integer or Decimal or Text—The value being compared with the test.
priorityIntegermin 00
control_flagsList 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