Used to trigger an event on an entity.
event entity <target: target> <eventName: string>
<target: target>: CommandSelector<Actor>
- Must be a player name or a target selector.
- Specifies the target(s) to execute an entity event.
- Must be either a single word (no spaces) or a quoted string.
- Specifies the in-game event for the entity. Should be a spawn event (event name for entities in behavior pack).
|any||the arguments are not specified correctly||Failed|
|all selected entities don't have this specified events declared in the events section of the entity definition file|
|On success||Event is executed|
|any||Bedrock Edition||On fail||0|
|On success||the number of types of entities that is executed entity event|
|1.16.100||beta 126.96.36.199||Added |