omni_mapdev_mode
Switch between editing (dev) and published-map preview (play) modes, or query the current mode. Play hides command blocks while keeping their logic running; dev restores full editing access.
Instructions
Dual-mode switch for the running map (the DEV <-> PLAY preview system). Call with no args to QUERY the current mode. mode='play' (alias 'preview') = PREVIEW: every command block becomes invisible, unopenable, unbreakable and untargetable while ALL command-block logic (impulse/repeating/chain, redstone, functions, schedulers) keeps running — the map behaves exactly as published. mode='dev' = full editing shape. Switching is instant (chunk meshes rebuild), race-free (server-thread scheduled) and persisted per map in mapmode.json. After switching to PLAY, always verify the map still WORKS (hiding never disables logic). Same unified kernel as /omni_dev mode and the pause-menu Map Dev screen.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| by | No | Who switched (audit trail). Defaults to the MCP agent. | |
| mode | No | Omit to query the current mode. dev = editing shape; play/preview = published-map shape. |