Toggle menu
Toggle preferences menu
Toggle personal menu
Not logged in
Your IP address will be publicly visible if you make any edits.

Minecraft:Commands/event: Difference between revisions

From SAS Gaming Wiki
SyncBot (talk | contribs)
Fix template calls: add MC/ prefix
SyncBot (talk | contribs)
Sync: updated from Minecraft
 
Line 1: Line 1:
{{MC/Exclusive|Bedrock|Education}}
{{exclusive|Bedrock|Education}}
{{Infobox command
{{Infobox command
|name=event
|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 ==
{{MC/Argument|be=1|target: target|CommandSelector<Actor>}}
{{argument|be=1|target: target|CommandSelector<Actor>}}
: {{MC/Arg desc|amount=multiple|type=entities|be=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.


{{MC/Argument|be=1|eventName: string|basic_string}}
{{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]]).
: {{MC/Arg desc|be=string}}
: {{arg desc|be=string}}


== Result ==
== Result ==
Line 31: Line 30:
== Output ==
== Output ==


{{MC/Output table|onlybe=1}}
{{Output table|onlybe=1}}
{{MC/Output table|edition=be|On fail|0}}
{{Output table|edition=be|On fail|0}}
{{MC/Output table|On success|the number of types of entities that is executed entity event}}
{{Output table|On success|the number of types of entities that is executed entity event}}
{{MC/Output table}}
{{Output table}}


== History ==
== History ==
{{HistoryTable
{{HistoryTable
|{{MC/HistoryLine|bedrock}}
|{{HistoryLine|bedrock}}
|{{HistoryLine||1.16.100|dev=beta 1.16.100.57|Added {{MC/Cmd|event|link=none}}.}}
|{{HistoryLine||1.16.100|dev=beta 1.16.100.57|Added {{cmd|event|link=none}}.}}
}}
}}


Line 47: Line 46:


== Navigation ==
== Navigation ==
{{MC/Navbox commands}}
{{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