/mobevent
< Commands
This feature is exclusive to Bedrock Edition and Minecraft Education.
/mobevent
Permission level required |
1 |
---|---|
Restrictions |
Cheat only |
{ "title": "<code>/mobevent</code>", "rows": [ { "field": "1", "label": "(link to Permission level article, displayed as Permission level<br>required)" }, { "field": "(link to Option article, displayed as Cheat) only<br>", "label": "(link to Commands#Restrictions article, displayed as Restrictions)" } ], "invimages": [], "images": [] }
Controls or queries what mob events are allowed to run.
Syntax[edit | edit source]
mobevent <event: MobEvent> [value: Boolean]
Arguments[edit | edit source]
event: MobEvent
: enum
- Specifies the event(s) to control or query. Must be one of the following:
minecraft:ender_dragon_event
for the event that spawns an ender dragon,minecraft:pillager_patrols_event
for the event that spawns an illager patrol,minecraft:wandering_trader_event
for the event that spawns a wandering trader,events_enabled
for the whole mob event subsystem. When this is disabled, no mob events occur; when enabled, only enabled events occur.
value: Boolean
: enum
- If specified,
true
enables the event(s) andfalse
disables them. If omitted, the current enabled status is displayed. - Must be a [Boolean]Boolean (either
true
orfalse
).
Result[edit | edit source]
Command | Trigger | Bedrock Edition |
---|---|---|
Any | The command is incomplete, or any argument is not specified correctly. | Unparseable |
Otherwise | Successful |
Output[edit | edit source]
Command | Edition | Situation | Success Count |
---|---|---|---|
Any | Bedrock Edition | On fail | 0 |
On success | 1 |
Examples[edit | edit source]
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[edit | edit source]
[hide]Bedrock Edition | |||||||
---|---|---|---|---|---|---|---|
1.11.0 | beta 1.11.0.3 | Added /mobevent . |