Control Which Mob Events Can Run
The /mobevent command in Minecraft Bedrock Edition lets you control which mob events are allowed to run in your world. You can use it to turn specific events on or off, or check their current status.
Players and server admins use this command when they want to stop interruptions like pillager patrols or wandering traders during custom maps or building projects. It requires cheats to be enabled and a Game Directors permission level.
/mobevent <event: MobEvent> [value: Boolean]Mob event
| Argument | Type | What it means |
|---|---|---|
event | MobEvent | Required. An `enum` that specifies the events to control or query. Must be one of the following: `minecraft:ender_dragon_event`, `minecraft:pillager_patrols_event`, `minecraft:wandering_trader_event`, or `events_enabled`. |
value | Boolean | Optional. A `Boolean` that enables events (`true`) or disables them (`false`). Default: `false`. |
/mobevent events_enabledQueries the game to check if the master switch for all mob events is currently enabled or disabled.
/mobevent minecraft:wandering_trader_event falseDisables the wandering trader event so that these traders are no longer allowed to run their event.
/mobevent minecraft:pillager_patrols_event falseTurns off the pillager patrols event in your world.
/mobevent minecraft:ender_dragon_event trueEnables the Ender Dragon mob event so it is allowed to run.
/mobevent minecraft:wandering_trader_event trueRe-enables the wandering trader event after it has been turned off.
/mobevent minecraft:pillager_patrols_eventChecks whether the pillager patrols event is currently active without changing its setting.
/mobevent events_enabled falseDisables the main mob events system using the master toggle.
/mobevent minecraft:ender_dragon_event falseStops the Ender Dragon event from running by setting its value to false.
Minecraft Java Edition does not have a command with the name /mobevent, so this command is exclusive to Bedrock Edition.
Run /mobevent followed by the event name and leave the optional Boolean value blank to query its current status.
The only four valid options are minecraft:ender_dragon_event, minecraft:pillager_patrols_event, minecraft:wandering_trader_event, and events_enabled.
You must have cheats enabled in your world and hold the Game Directors permission level to use this command.
/clone/daylock/difficulty/fill/fog/gamerule/locate/place/setblock/setworldspawn/structure/tickingarea/time/weather