[GH-ISSUE #1871] Can't access minecraft debug world #556

Closed
opened 2026-11-02 15:40:01 +07:00 by bsakaguchi · 3 comments
Owner

Originally created by @ludovic111 on GitHub (Oct 25, 2026).
Original GitHub issue: https://github.com/horizon-rust/horizon/issues/1871

Originally assigned to: @d3grando on GitHub.

What I did: hold alt at world creation and click many times on world type
What happened: regular world types were cycled
What I expected: debug world to show up due to alt being held
Horizon version: 0.2.57
OS, CPU, GPU: windows x86, ryzen 9 3950x, rtx 4060ti 8gb

Reported on Discord by kevennever#5592 in #horizon-bugs · Discord thread
Tags: gameplay, world gen

Opened by Kira from Discord. Replies from the reporter in the thread are added here as comments.

Originally created by @ludovic111 on GitHub (Oct 25, 2026). Original GitHub issue: https://github.com/horizon-rust/horizon/issues/1871 Originally assigned to: @d3grando on GitHub. > What I did: hold alt at world creation and click many times on world type > What happened: regular world types were cycled > What I expected: debug world to show up due to alt being held > Horizon version: 0.2.57 > OS, CPU, GPU: windows x86, ryzen 9 3950x, rtx 4060ti 8gb Reported on Discord by **kevennever#5592** in #horizon-bugs · [Discord thread](https://discord.com/channels/1559227979002028052/1563955961184395414) Tags: gameplay, world gen <sub>Opened by Kira from Discord. Replies from the reporter in the thread are added here as comments.</sub><!-- kira -->
bsakaguchi 2026-11-02 15:40:01 +07:00
Author
Owner

@levzzz5154 commented on GitHub (Oct 26, 2026):

🤖 Agent: not fixed yet — this one needs a generator of its own, not a world preset. Here is what I found, and the part that is done.

What vanilla does. The debug world is a world preset of its own,
minecraft:debug_all_block_states, which is not in the normal tag the
create screen's list is built from but in the extended tag:

data/minecraft/tags/worldgen/world_preset/normal.json
{
  "values": [
    "minecraft:normal",
    "minecraft:flat",
    "minecraft:large_biomes",
    "minecraft:amplified",
    "minecraft:single_biome_surface"
  ]
}

data/minecraft/tags/worldgen/world_preset/extended.json
{
  "values": [
    "#minecraft:normal",
    "minecraft:debug_all_block_states"
  ]
}

WorldCreationUiState.updatePresetLists fills the normal list from
WorldPresetTags.NORMAL and the Alt list from WorldPresetTags.EXTENDED
(the normal list plus the debug world), and the create screen's
CycleButton<WorldTypeEntry> picks the list to cycle with
CycleButton.DEFAULT_ALT_LIST_SELECTOR, which is
Minecraft.getInstance().hasAltDown() — so Alt is held while clicking the
world-type button, and the debug world is the last entry of that list.

The generator. In 26.3 the debug world's generator is
net.minecraft.world.level.levelgen.DebugLevelSource (there is no
WorldType enum and no DebugLevelGenerator in 26.3 — WorldType was the
1.18 name of the world-preset enum, and the generator became
DebugLevelSource with the presets). It is not a noise generator: it builds
an empty chunk (buildTerrain returns it unchanged) and, in
applyBiomeDecoration, puts a barrier block at y=60 and a grid of every
block state of the block registry at y=70, on a fixed plains biome
(FixedBiomeSource).

Why it is not in https://github.com/ludovic111/horizon/pull/2570. Horizon's
world generator is a noise pipeline (horizon-world's worldgen::generator),
so the debug world needs a generator kind of its own there — the block-state
grid, an empty terrain pass and the decoration that places the two layers —
plus the Alt-cycling list and the Alt modifier in the create screen. That is
a change of its own, and faking it (a plain flat world, or a world type that
only shows the name) would not be the debug world, so I left it out of the
world-type pull request instead of approximating it.

What is done in the meantime (pull request 2570, the same world-type
button): the button now cycles the presets vanilla's normal tag holds —
Default, Superflat, Large Biomes, Amplified and Single Biome — instead of
toggling a flat world, each preset is written into the new world's
world_gen_settings.dat with the generator
worldgen/world_preset/<preset>.json has, and the generator is built from
that preset (an amplified world gets the amplified noise settings). The
evidence is in that pull request: the create-screen cycle test, the
world_gen_settings round trip per preset, and the server_world_gen
parity harness (vanilla's dedicated server against Horizon's, with new
minecraft:amplified, minecraft:large_biomes and
minecraft:single_biome_surface cases) — PASS server_world_gen 253s.

I will open the debug world as a separate pull request: the Alt list
(WorldPresetTags.EXTENDED) in the create screen, the minecraft:debug
generator in horizon-world, and the minecraft:debug_all_block_states
preset in the saved world_gen_settings.dat. The account has no permission
to close this issue, so the maintainer decides when it lands.

<!-- gh-comment-id:6429707627 --> @levzzz5154 commented on GitHub (Oct 26, 2026): 🤖 Agent: not fixed yet — this one needs a generator of its own, not a world preset. Here is what I found, and the part that is done. **What vanilla does.** The debug world is a world preset of its own, `minecraft:debug_all_block_states`, which is *not* in the `normal` tag the create screen's list is built from but in the `extended` tag: ``` data/minecraft/tags/worldgen/world_preset/normal.json { "values": [ "minecraft:normal", "minecraft:flat", "minecraft:large_biomes", "minecraft:amplified", "minecraft:single_biome_surface" ] } data/minecraft/tags/worldgen/world_preset/extended.json { "values": [ "#minecraft:normal", "minecraft:debug_all_block_states" ] } ``` `WorldCreationUiState.updatePresetLists` fills the normal list from `WorldPresetTags.NORMAL` and the Alt list from `WorldPresetTags.EXTENDED` (the normal list plus the debug world), and the create screen's `CycleButton<WorldTypeEntry>` picks the list to cycle with `CycleButton.DEFAULT_ALT_LIST_SELECTOR`, which is `Minecraft.getInstance().hasAltDown()` — so Alt is held while clicking the world-type button, and the debug world is the last entry of that list. **The generator.** In 26.3 the debug world's generator is `net.minecraft.world.level.levelgen.DebugLevelSource` (there is no `WorldType` enum and no `DebugLevelGenerator` in 26.3 — `WorldType` was the 1.18 name of the world-preset enum, and the generator became `DebugLevelSource` with the presets). It is not a noise generator: it builds an empty chunk (`buildTerrain` returns it unchanged) and, in `applyBiomeDecoration`, puts a barrier block at y=60 and a grid of every block state of the block registry at y=70, on a fixed plains biome (`FixedBiomeSource`). **Why it is not in https://github.com/ludovic111/horizon/pull/2570.** Horizon's world generator is a noise pipeline (`horizon-world`'s `worldgen::generator`), so the debug world needs a generator kind of its own there — the block-state grid, an empty terrain pass and the decoration that places the two layers — plus the Alt-cycling list and the Alt modifier in the create screen. That is a change of its own, and faking it (a plain flat world, or a world type that only shows the name) would not be the debug world, so I left it out of the world-type pull request instead of approximating it. **What is done in the meantime** (pull request 2570, the same world-type button): the button now cycles the presets vanilla's `normal` tag holds — Default, Superflat, Large Biomes, Amplified and Single Biome — instead of toggling a flat world, each preset is written into the new world's `world_gen_settings.dat` with the generator `worldgen/world_preset/<preset>.json` has, and the generator is built from that preset (an amplified world gets the amplified noise settings). The evidence is in that pull request: the create-screen cycle test, the `world_gen_settings` round trip per preset, and the `server_world_gen` parity harness (vanilla's dedicated server against Horizon's, with new `minecraft:amplified`, `minecraft:large_biomes` and `minecraft:single_biome_surface` cases) — `PASS server_world_gen 253s`. I will open the debug world as a separate pull request: the Alt list (`WorldPresetTags.EXTENDED`) in the create screen, the `minecraft:debug` generator in `horizon-world`, and the `minecraft:debug_all_block_states` preset in the saved `world_gen_settings.dat`. The account has no permission to close this issue, so the maintainer decides when it lands.
Author
Owner

@d3grando commented on GitHub (Oct 30, 2026):

/claim

<!-- gh-comment-id:6518432853 --> @d3grando commented on GitHub (Oct 30, 2026): /claim
Author
Owner

@kacpherek commented on GitHub (Nov 1, 2026):

The Debug world preset landed in #5458 (merged): a grid of every block state, no ticks, no spawning. Please reopen if it doesn't work on the latest Nightly.

<!-- gh-comment-id:6556148612 --> @kacpherek commented on GitHub (Nov 1, 2026): The Debug world preset landed in #5458 (merged): a grid of every block state, no ticks, no spawning. Please reopen if it doesn't work on the latest Nightly.
Sign in to join this conversation.
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference
horizon-rust/horizon#556
No description provided.