Minecraft:Commands/event: Difference between revisions
From SAS Gaming Wiki
More actions
Fix template calls: add MC/ prefix |
Sync: updated from Minecraft |
||
| Line 1: | Line 1: | ||
{{ | {{exclusive|Bedrock|Education}} | ||
{{Infobox command | {{Infobox command | ||
|oplevel=1 | |oplevel=1 | ||
|cheat=1 | |cheat=1 | ||
}} | }} | ||
Used to trigger an event on an entity. | Used to trigger an event on an [[Minecraft:entity]]. | ||
== Syntax == | == Syntax == | ||
| Line 12: | Line 11: | ||
== Arguments == | == Arguments == | ||
{{ | {{argument|be=1|target: target|CommandSelector<Actor>}} | ||
: {{ | : {{arg desc|amount=multiple|type=entities|be=actor}} | ||
: Specifies the target(s) to execute an entity event. | : Specifies the target(s) to execute an entity event. | ||
{{ | {{argument|be=1|eventName: string|basic_string}} | ||
: Specifies the in-game event for the entity. Should be a [[Minecraft:spawn event]] (event name for entities in [[Minecraft:behavior pack]]). | : Specifies the in-game event for the entity. Should be a [[Minecraft:spawn event]] (event name for entities in [[Minecraft:behavior pack]]). | ||
: {{ | : {{arg desc|be=string}} | ||
== Result == | == Result == | ||
| Line 31: | Line 30: | ||
== Output == | == Output == | ||
{{ | {{Output table|onlybe=1}} | ||
{{ | {{Output table|edition=be|On fail|0}} | ||
{{ | {{Output table|On success|the number of types of entities that is executed entity event}} | ||
{{ | {{Output table}} | ||
== History == | == History == | ||
{{HistoryTable | {{HistoryTable | ||
|{{ | |{{HistoryLine|bedrock}} | ||
|{{HistoryLine||1.16.100|dev=beta 1.16.100.57|Added {{ | |{{HistoryLine||1.16.100|dev=beta 1.16.100.57|Added {{cmd|event|link=none}}.}} | ||
}} | }} | ||
| Line 47: | Line 46: | ||
== Navigation == | == Navigation == | ||
{{ | {{Navbox commands}} | ||
de:Befehl/event | [[Minecraft:de:Befehl/event]] | ||
ja:コマンド/event | [[Minecraft:ja:コマンド/event]] | ||
pt:Comandos/event | [[Minecraft:pt:Comandos/event]] | ||
ru:Команды консоли/event | [[Minecraft:ru:Команды консоли/event]] | ||
zh:命令/event | [[Minecraft:zh:命令/event]] | ||
Latest revision as of 11:10, 14 October 2026
Template:Exclusive Template:Infobox command Used to trigger an event on an Minecraft:entity.
Syntax
event entity <target: target> <eventName: string>
Arguments
- Template:Arg desc
- Specifies the target(s) to execute an entity event.
- Specifies the in-game event for the entity. Should be a Minecraft:spawn event (event name for entities in Minecraft:behavior pack).
- Template:Arg desc
Result
Template:Result table Template:Result table Template:Result table Template:Result table Template:Result table Template:Result table
Output
Template:Output table Template:Output table Template:Output table Template:Output table
History
External links
Minecraft:de:Befehl/event Minecraft:ja:コマンド/event Minecraft:pt:Comandos/event Minecraft:ru:Команды консоли/event Minecraft:zh:命令/event