Skip to main content

Secret Realm Generations (secret_realm_generation_type)

secret_realm_generation_type​

The generation of a secret realm picks a generation type from this family to decide how the instance dimension is built. A data pack can only pick an existing type and cannot add new ones.

The registry entries a generation names (stem, dimension_type, biome) are resolved when an instance is created: datapack registries load in parallel, so what is read at decode time may not be bound yet. A failed resolution fails the creation (GENERATION_FAILED) and logs one line; no half-built instance is left behind.

"generation": { "type": "mxt:void", "biome": "minecraft:the_void", "dimension_type": "minecraft:the_end" }

mxt:stem​

Takes one registered dimension generator as its template and opens an instance under a new dimension key.

FieldTypeDefaultDescription
stemDimension generator idrequiredFor example minecraft:overworld, minecraft:the_end.
{ "type": "mxt:stem", "stem": "minecraft:the_end" }

mxt:flat​

A superflat world.

FieldTypeDefaultDescription
presetStringrequiredA vanilla superflat layer string, for example "1*minecraft:bedrock,2*minecraft:dirt,minecraft:grass_block;minecraft:plains".
dimension_typeDimension type idminecraft:overworldWhich dimension type the instance uses.
structuresBooleantrueWhether to generate structures.
{ "type": "mxt:flat", "preset": "1*minecraft:bedrock,2*minecraft:dirt,minecraft:grass_block;minecraft:plains" }

mxt:void​

An empty world: no layers, one biome and no structures by default, which suits a secret realm furnished entirely from structures.

FieldTypeDefaultDescription
biomeBiome idminecraft:the_voidThe biome the whole instance uses.
dimension_typeDimension type idnoneWhich dimension type the instance uses.
structuresBooleanfalseWhether to generate structures.
{ "type": "mxt:void", "biome": "minecraft:the_void", "dimension_type": "minecraft:the_end" }

mxt:template​

Copies region, entities and poi from <server directory>/mxt_secret_realm/<template>/ and then loads them; this is the route for a hand-built map.

FieldTypeDefaultDescription
templateStringrequiredThe template directory name; only [A-Za-z0-9_-]+ is accepted, and anything else fails the creation.
stemDimension generator idrequiredThe dimension generator used to load this template.
{ "type": "mxt:template", "template": "trial_arena", "stem": "minecraft:overworld" }

mxt:existing​

Creates no dimension at all and uses one that already exists (including a datapack dimension/ entry). max_instances is meaningless for it, and the secret realm never unloads or deletes that dimension when an instance ends.

FieldTypeDefaultDescription
dimensionDimension idrequiredUses this existing dimension as the instance directly.
{ "type": "mxt:existing", "dimension": "minecraft:the_end" }

The border belongs to this type as well: it is the only one that touches that real dimension's border when a border is written, while every other type explicitly sets a freshly created dimension to the vanilla default border.