minecraft:behavior.send_event

Allows the mob to send an event to another mob.

Properties

PropertyTypeDefaultWhat it does
event_choicesList of object[]List of spell options to select from. One is randomly chosen each time the goal activates.
min_activation_rangeDecimal1Minimum distance in blocks the target must be for this spell to activate
max_activation_rangeDecimal32Maximum distance in blocks the target can be for this spell to activate
cooldown_timeDecimal0Time in seconds the mob has to wait before using this spell again
weightDecimal0Relative weight of this spell choice when randomly selected from valid choices
look_at_targetBooleantrueIf true, the mob will face the entity it sends an event to
do_castingBooleantrueIf true, the mob will show a casting animation while sending the event
start_sound_eventText""The sound event to play when this spell starts
filtersObject or List of object{"AND": null, "NOT": null, "OR": null, "all": null, "all_…Conditions that the target must meet to be eligible for receiving the event
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.
cast_durationDecimal0Time in seconds for the entire event sending process
sequenceList of object[]List of events to send
base_delayDecimal0Amount of time in seconds before starting this step
eventText""The event to send to the entity
sound_eventText""The sound event to play when this step happens
particle_colorText or List of integer[255, 255, 255, 255]The color of the particles spawned while casting this spell
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.send_event": {
    "event_choices": [
      {
        "particle_color": "#FFB38033",
        "cast_duration": 3,
        "max_activation_range": 16,
        "filters": {
          "all_of": [
            {
              "subject": "other",
              "test": "is_family",
              "value": "sheep"
            },
            {
              "subject": "other",
              "test": "is_color",
              "value": "blue"
            }
          ]
        },
        "cooldown_time": 5,
        "min_activation_range": 0,
        "start_sound_event": "cast.spell",
        "sequence": [
          {
            "base_delay": 2,
            "event": "wololo",
            "sound_event": "prepare.wololo"
          }
        ],
        "weight": 3
      }
    ],
    "priority": 3
  }
}

Used by 1

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

Related components