View at: Template:Commands/content [edit]
Commands/mobevent - minecraft.fandom.com
Treść tej podstrony pochodzi z artykułu „Commands/mobevent” w domenie minecraft.fandom.com na licencji CC BY-NC-SA 3.0
This feature is exclusive to Bedrock Edition and Minecraft Education.
Controls or queries what mob events are allowed to run.
Syntax[]
mobevent <event: MobEvent> [value: Boolean]
Arguments[]
event: MobEvent: enum
- 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 event subsystem. When this is disabled, no events occur; when enabled, only enabled events occur.
value: Boolean: enum
- If specified,
trueenables the events andfalsedisables them. If omitted, the current enabled status is displayed.
Result[]
Fails if arguments are not specifed correctly.
On success,
- enables or disables the event subsystem if
enable_eventswas specified. - enables or disables the event if an event name was specified.
- displays the enabled or disabled status if
value: Booleanwas omitted.
Output[]
| Command | Edition | Situation | Success Count |
|---|---|---|---|
| any | Bedrock Edition | On fail | 0 |
| On success | 1 |
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[]
| Bedrock Edition | |||||
|---|---|---|---|---|---|
| 1.11.0 | beta 1.11.0.3 | Added /mobevent. | |||