Minecraft Wiki

The Minecraft Wiki is no longer considered as official by Microsoft and therefore several changes are required to be made, including to the wiki's logo. Please read this announcement for more information.

READ MORE

Minecraft Wiki
Advertisement
Information icon.svg
This feature is exclusive to Bedrock Edition and Education Edition. 
mobevent
Permission level
required

1

Restrictions

Cheat only

Controls or queries what mob events are allowed to run.

Syntax[]

mobevent <event: MobEvent> [value: Boolean]

Arguments[]

event: MobEvent

Specifies the event(s) to control or query. Can be one of the following:
minecraft:pillager_patrols_event for the event that generates an illager patrol,
minecraft:wandering_trader_event for the event that spawns a wandering trader,
events_enabled for the event subsystem. When this is disabled, no events occur; when enabled, only enabled events occur.

value: Boolean

If specified, true enables the events and false disables 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_events was specified.
  • enables or disables the event if an event name was specified.
  • displays the enabled or disabled status if [true|false] was omitted.

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.0beta 1.11.0.3Added /mobevent.
Advertisement