![]() |
VOOZH | about |
Debug mode usually refers to a world preset used to test block states, block models, and textures.
Debug mode can also refer to a dimension generator type (minecraft:debug) that generates a block grid, which is used in the "Debug mode" world preset, and can also be used in custom dimensions.
Debug mode can also refer to a state of a world, if the Overworld uses the "debug" generator, the world goes into the debug mode state. In this state, blocks can't be changed even in Creative mode or with commands.
To select the debug mode, hold the key while clicking the "World Type" button in the world creation menu. Debug mode is the world type directly after Single Biome, and just before the default preset.
Upon selecting debug mode, the "Bonus Chest", "Generate Structures", "Allow Cheats" and "Data Packs" options are forcibly disabled. The game mode is set to Spectator, difficulty is locked on Peaceful, and cheats are enabled. The game rule advance_time is forced to false, while other game rules are forced to default values.
The minecraft:debug generator contains all blocks, in all of their existing block states, organized in a single world. The world updates automatically to include any new registered block IDs that are added. Therefore, this mode is useful not only to Mojang Studios developers, but also to creators of resource packs and mods.
Every block state generates only once or, in a few cases in some versions, twice. They are sorted in a grid spread across an altitude of Y=70. The block grid changes its size according to the number of blocks and block states available. Let T be the total number of block states, and ⌈x⌉ the ceiling of x (that is, x rounded up), the number of blocks per row is given by ⌈T/⌈√T⌉⌉+1, however, only the first ⌈√T⌉ blocks are counted to determine the block of the next rows, so if ⌈√T⌉<⌈T/⌈√T⌉⌉+1, then the last block of each row be repeated in the following row. Note that the number of rows is always slightly less than the number of columns, even if the last row is incomplete.[1]
In a grid with 29873 block states, there are 173 lines with up to 174 block states. The last line has 117 block states.
A barrier floor at Y=60 also spawns, extending past the grid in all directions to the world boundary. Other than the barrier floor, the remainder of the map is empty.
Debug mode can refer to a state of the world. If the Overworld uses the "debug" generator, the world goes into the debug world state.
If a Nether portal or End portal is used, or teleported using /execute, the player enters other dimensions. The sky, light level and other properties remain appropriate to the dimension.
In this state, all the dimensions are forced to use the "debug" generator. The chunk rendering may not update by itself in these dimensions, resulting in the need to right-click a block to render a new chunk.
In the vanilla End, the ender dragon and its End crystals still spawn, although the dragon cannot break or interact with blocks. The iron bars surrounding some End crystals still spawn, but are unbreakable and invisible.
It is impossible to change, place or remove any block, even by the game itself.
Chunk's chunk tick (including random ticks) does not execute.
No entity spawns naturally.
Any block whose interactions do not change its block state can still be used (including chests, beds, cake, etc.). Although a block's state cannot change, its block entity data can change, either through normal player interaction or with the use of the /data command.
These unique properties of debug mode can cause certain blocks to behave in unexpected ways, though due to the arrangement of blocks next to one another, not all may be seen in every version:
facing property to drop as an item.
| Java Edition | |||||||
|---|---|---|---|---|---|---|---|
| 1.8 | 14w26a | Added Debug Mode world type. | |||||
| Block entity graphics would disappear when a block is hit, door and trapdoor hitboxes were inconsistent with their state, and not all interfaces were accessible. | |||||||
| 14w27a | Different block states are used instead of metadata. | ||||||
| Options are disabled when creating the world, and the only game mode you can get upon world creation is Spectator Mode. | |||||||
| Block states now generate in a square pattern rather than in an infinite repeating grid. | |||||||
| 1.9 | 15w31a | All interfaces are now accessible. | |||||
| 15w37a | Block entity graphics are now regenerated (and set to default), when the block is hit. | ||||||
| 15w38a | Door and trapdoor hitboxes are now consistent with their state. | ||||||
| 1.16 | 20w22a | Blocks in the debug world have been changed to be breakable and interactable with, unlike previously where they would regenerate and the world would not be able to be modified.[2] | |||||
| Pre-release 1 | Blocks now reappear again. | ||||||
| 1.17 | 20w46a | is now used instead of to access debug mode in the world creation menu. | |||||
Issues relating to "Debug mode" are maintained on the bug tracker. Issues should be reported and viewed there.
| Environment | |||||||
|---|---|---|---|---|---|---|---|
| Geography | |||||||
| Weather | |||||||
| Dimensions | |||||||
| World types |
| ||||||
| Player constructions |
| ||||||
| Matter | |||||||
| Sound | |||||||
| Joke |
| ||||||
| Bugs |
| ||||||
| Removed |
| ||||||