WhatIs Love

Create a Minecraft flat world generator preset for version 1.21.4 / 26.x.

The layer composition must be (from top to bottom):

  • Top layer: 30 blocks of minecraft:sand
  • Middle layer: 50 blocks of minecraft:sandstone
  • Bottom layer: 1 block of minecraft:bedrock

Biome requirements:

  • Set the biome strictly to minecraft:desert so only cacti and dead bushes generate on the surface.

Structure constraints:

  • Disable all structures, including mineshafts, villages, outposts, and dungeons.
  • Keep ONLY the stronghold (minecraft:stronghold) enabled for the End Portal.

Output the full valid JSON data pack structure using the modern "flat_level_generator_preset" format in plain English, with all parameters like count, layers, and structure_overrides correctly configured to pass the modern validation tool. No cyrillic characters inside.

Kodari AI
KodariNov 9 at 9:50 pm 1
DesertFlatWorldPreset
Creates a Minecraft 1.21.4 flat world generator preset featuring a desert biome with a 30-block sand top layer, 50-block sandstone middle layer, and 1-block bedrock base. Forces the desert biome for cactus and dead bush generation, disables all structures except the stronghold for End Portal access, and outputs a valid modern flat_level_generator_preset JSON data pack configuration.

This preset is for Minecraft 1.21.4 (pack format 48); compatibility with 26.x is not guaranteed. The layers are listed bottom-to-top. features: true enables desert surface plants, but also allows dungeon features: structure_overrides disables other structure sets, not dungeons. Avoiding dungeons while retaining desert features would require changing the desert biome itself.

Download the ZIP using the export button, extract desert_flat_generator into your world’s datapacks/ folder, then run /reload and /datapack list to verify it loaded. The preset is available when creating a world with the Flat world type.

Kodari can make mistakes. Review important code before using.
Files
desert_flat_generator
Code
2 34
desert_flat_generator/data/desert_flat/worldgen/flat_level_generator_preset/desert.json
{
  "display": {
    "type": "minecraft:item",
    "name": "minecraft:sand"
  },
  "settings": {
    "biome": "minecraft:desert",
    "features": true,
    "lakes": false,
    "layers": [
      {
        "block": "minecraft:bedrock",
        "height": 1
      },
      {
        "block": "minecraft:sandstone",
        "height": 50
      },
      {
        "block": "minecraft:sand",
        "height": 30
      }
    ],
    "structure_overrides": [
      "minecraft:strongholds"
    ]
  }
}