Commands/debugmobspawning

Minecraft Wiki article. Categories: Java_Edition, Commands

📌 Mirrored from Minecraft Wiki

This article is reproduced from Commands/debugmobspawning on the Minecraft Wiki. Mirrored from revision 3384012. It is licensed CC BY-NC-SA 3.0 by the Minecraft Wiki contributors — not under the Codex’s CC BY-SA 4.0, and it may not be used commercially. Edits belong upstream, not here.

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

/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.

Sources