1. Wiki
  2. /Entities
  3. /minecraft:behavior.send_event

minecraft:behavior.send_event

Don't want to write this by hand? GodCraft sets minecraft:behavior.send_event for you with a switch.Get GodCraft

Overview

minecraft:behavior.send_event is an entity component: it goes in the components object of a custom mob, or in one of its component groups. Lets the mob cast a spell that fires events on another mob, one after another. The evoker uses it to turn blue sheep red.

Fields

FieldTypeDefaultDescription
cast_durationDecimal"Total delay of the steps"How long, in seconds, the whole casting takes.
look_at_targetBoolean"true"If true, the mob faces the entity it sends events to.
sequenceListnoneThe list of events to send, each with its own delay and sound.

Example

Inside the components object of BP/entities/<name>.json (values are the defaults or placeholders):

BP/entities/<name>.json
{
  "minecraft:behavior.send_event": {
    "cast_duration": "Total delay of the steps",
    "look_at_target": "true",
    "sequence": {}
  }
}

We use cookies to improve your experience and analyse site traffic. Learn more