Minecraft:Commands/mobevent: Difference between revisions
From SAS Gaming Wiki
More actions
imported>MinecraftBedrockPlayer7 |
Remove broken links to missing pages |
||
| Line 16: | Line 16: | ||
{{argument|be=1|event: MobEvent|enum}} | {{argument|be=1|event: MobEvent|enum}} | ||
: Specifies the event(s) to control or query. Must be one of the following: | : Specifies the event(s) to control or query. Must be one of the following: | ||
::<code>minecraft:ender_dragon_event</code> for the event that spawns an | ::<code>minecraft:ender_dragon_event</code> for the event that spawns an ender dragon, | ||
::<code>minecraft:pillager_patrols_event</code> for the event that spawns an | ::<code>minecraft:pillager_patrols_event</code> for the event that spawns an illager patrol, | ||
::<code>minecraft:wandering_trader_event</code> for the event that spawns a | ::<code>minecraft:wandering_trader_event</code> for the event that spawns a wandering trader, | ||
::<code>events_enabled</code> for the whole mob event subsystem. When this is disabled, no mob events occur; when enabled, only enabled events occur. | ::<code>events_enabled</code> for the whole mob event subsystem. When this is disabled, no mob events occur; when enabled, only enabled events occur. | ||
| Line 64: | Line 64: | ||
{{Navbox commands}} | {{Navbox commands}} | ||
de:Befehl/mobevent | |||
ja:コマンド/mobevent | |||
pt:Comandos/mobevent | |||
ru:Команды консоли/mobevent | |||
zh:命令/mobevent | |||
Revision as of 15:44, 9 April 2026
Template:Exclusive Template:Infobox command
Controls or queries what Minecraft:mob events are allowed to run.
Syntax
mobevent <event: MobEvent> [value: Boolean]
Arguments
- Specifies the event(s) to control or query. Must be one of the following:
minecraft:ender_dragon_eventfor the event that spawns an ender dragon,minecraft:pillager_patrols_eventfor the event that spawns an illager patrol,minecraft:wandering_trader_eventfor the event that spawns a wandering trader,events_enabledfor the whole mob event subsystem. When this is disabled, no mob events occur; when enabled, only enabled events occur.
- If specified,
trueenables the event(s) andfalsedisables them. If omitted, the current enabled status is displayed. - Template:Arg desc
Result
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
Examples
To disable all events:
/mobevent events_enabled false
To enable wandering traders to be spawned (while the event subsystem is enabled):
/mobevent minecraft:wandering_trader_event true
To query the status of pillager patrol generation:
/mobevent minecraft:pillager_patrols_event
History
External links
de:Befehl/mobevent ja:コマンド/mobevent pt:Comandos/mobevent ru:Команды консоли/mobevent zh:命令/mobevent