Minecraft:Commands/mobevent
From SAS Gaming Wiki
More actions
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 Minecraft:ender dragon,minecraft:pillager_patrols_eventfor the event that spawns an Minecraft:illager patrol,minecraft:wandering_trader_eventfor the event that spawns a Minecraft: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
Minecraft:de:Befehl/mobevent Minecraft:ja:コマンド/mobevent Minecraft:pt:Comandos/mobevent Minecraft:ru:Команды консоли/mobevent Minecraft:zh:命令/mobevent