/mobevent Command in Minecraft Bedrock Edition

Control Which Mob Events Can Run

Bedrock EditionWorld & BlocksPermission: Game DirectorsCheats: Yes

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.

Syntax (1 form)

  1. /mobevent <event: MobEvent> [value: Boolean]

    Mob event

Arguments

ArgumentTypeWhat it means
eventMobEventRequired. 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`.
valueBooleanOptional. A `Boolean` that enables events (`true`) or disables them (`false`). Default: `false`.

Examples

Tips

Common mistakes

Bedrock vs Java

Minecraft Java Edition does not have a command with the name /mobevent, so this command is exclusive to Bedrock Edition.

FAQ

How do I check if a mob event is enabled without changing it?

Run /mobevent followed by the event name and leave the optional Boolean value blank to query its current status.

What are the valid event names for the /mobevent command?

The only four valid options are minecraft:ender_dragon_event, minecraft:pillager_patrols_event, minecraft:wandering_trader_event, and events_enabled.

Why can I not use the /mobevent command in my world?

You must have cheats enabled in your world and hold the Game Directors permission level to use this command.

Related commands

/clone/daylock/difficulty/fill/fog/gamerule/locate/place/setblock/setworldspawn/structure/tickingarea/time/weather