/debugmobspawning

Not to be confused with Commands/debugconfig or Commands/debugpath.
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, or water_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

CommandTriggerJava Edition
AnyThe command is incomplete, or any argument is not specified correctly. Unparseable
OtherwiseSuccessful

Output

CommandEditionSituationSuccess Count/execute store success .../execute store result ...
AnyJava EditionOn success111

History

Java Edition
1.21.9Pre-Release 1Added debug property -DMC_DEBUG_DEV_COMMANDS, making the command accessible in the vanilla game.

Navigation