Wiki ArticleJava EditionCommands
/debugmobspawning
/debugmobspawning is a command that can be enabled with the debug property -DMC_DEBUG_DEV_COMMANDS. It attempts to spawn mobs of the specified spawn group at the specified destination.
This feature is exclusive to Java Edition.
This feature is intended for debugging purposes only, and should not be used during normal play. It might cause crashes and corrupt world saves.
/debugmobspawning| Permission level required |
2 |
|---|---|
| Restrictions | -DMC_DEBUG_DEV_COMMANDS debug property
|
/debugmobspawning is a command that can be enabled with the debug property -DMC_DEBUG_DEV_COMMANDS. It attempts to spawn mobs of the specified spawn group at the specified destination.
Syntax
debugmobspawning <spawn group> <at>
- Forces a spawn attempt for the specified spawn group at the specified block position. Mobs only spawn if the spawn attempt succeeds, according to the rules described in Mob spawning § Spawn cycle.
Arguments
<spawn group>
- Specifies the spawn group to force a spawn attempt for.
- Must be one of
ambient,axolotls,creature,misc,monster,underground_water_creature,water_ambient, orwater_creature.
<at>: block_pos
- Specifies the position to force the spawn attempt on.
- Must be a block position composed of
<X>,<Y>and<Z>, each of which must be an integer or a tilde and caret notation.
Result
| Command | Trigger | Java Edition |
|---|---|---|
| Any | The command is incomplete, or any argument is not specified correctly. | Unparseable |
| Otherwise | Successful |
Output
| Command | Edition | Situation | Success Count | /execute store success ... | /execute store result ... |
|---|---|---|---|---|---|
| Any | Java Edition | On success | 1 | 1 | 1 |
History
| Java Edition | |||||||
|---|---|---|---|---|---|---|---|
| 1.21.9 | Pre-Release 1 | Added debug property -DMC_DEBUG_DEV_COMMANDS, making the command accessible in the vanilla game. | |||||