promotional bannermobile promotional banner

Megastructure Block

A structure block that breaks the constraints of regular structure blocks and stores chunk-sized parts of the desired area in different consecutive NBT files that can also be loaded back by the same block
structureblocks.png

structureblocks.png

Description

The megastructure block is similar to a regular structure block but it breaks the size limit of the vanilla one.

This mod is a compulsory dependency for worldgen systems that use megastructures in their generation logic.

This block works similar to vanilla, but with two major changes:

  • Firstly, it serializes structures differently:
    • This block captures the whole chunk-sized area (width and length) of any block inside the structure area. The height encompasses the regular height of the structure (from the megastructure block to the set height).
    • Each chunk is serialized as a different regular encoded structure. This technically means one can load individual structure chunks through a regular structure block
    • The serialization also includes a "master nbt file", that includes the header data necessary to reassemble all the chunks of the overall megastructure correctly into the world.
  • This means, secondly, there is no theoretical structure limit other than what your PC is capable of. I have managed to serialize and deserialize a 100 x 100 block (7x7 chunks) correctly as well as other bigger tests no problem

Instructions

The megastructure block is only obtainable via the /give command

SAVE

Works as a regular structure block with the size of the area to save and the offset to move said area around.

There is a "DETECT" that doesn't work because the megastructure block does not have a proper corner detection capabilities. (The "delimiter mode" does nothing at the moment)

There is a button to toggle wether special blocks like air and entities are saved on the megastructure.

The block automatically prepends any inputed structure name with the minecraft namespace followed by the "mgst_" prefix and the name you inputed.

  • For example, if the name of your structure is "bigcastle", the header file of the megastructure will be identified as "minecraft:mgst_bigcastle"

You can use your own namespace instead.

  • For example, if you are making the "bigcastle" megastructure for the "bigworld" namespace, you can write the name as "bigworld:bigcastle" and it will be saved as "bigworld:mgst_bigcastle"

ATTENTION!

For now the blocks saves all the width and length of all the chunks that contains part of the stabilished area, meaning that that "buffer area" will also be placed on a LOAD opperation.

LOAD

Also works as a regular structure load with the name of the megastructure to load (including the "mgst_" prefix) and the offset

ATTENTION!

For now, the offset and the block position are ignored and the megastructure starts to load on the corner of the chunk closest in orientation to the origin of coordinates


For developers

This mod can be downloaded as a packaged dependency for a mod and also includes the classes and registries needed to spawn megastructures in the world programatically. If people are interested, a doc will be created in the future

The Megastructure Block Team

profile avatar
  • 4
    Projects
  • 668
    Downloads

More from itsjustnil

  • Relative Dimensions project image

    Relative Dimensions

    • 28
    • Mods

    The walls between dimensions are growing thin! Explore, get items and traverse dimensions from some well-known franchises, tied to a central narrative thread to discover. Ported from 1.17-1.19 to 1.20.4- Available in english and Spanish!

    • 28
    • May 12, 2026
    • Mods
    • +4
  • Realms of Runeterra: A tale of relative dimensions project image

    Realms of Runeterra: A tale of relative dimensions

    • 210
    • Mods

    New blocks, items, mechanics, stories and adventures await you in an in a 131072-side block map of Runeterra, the world of the world-wide known MOBA League of Legends. An immersive new dimension paired with procedural generation to spice every new world!

    • 210
    • December 31, 2025
    • Mods
    • +4
  • Items, Crafts & World of the Realms of Runeterra project image

    Items, Crafts & World of the Realms of Runeterra

    • 249
    • Mods

    This project introduces all the items, blocks, abilities and other gameplay mechanics not related to the world generation provided by the Core Package of Realms of Runeterra: A Tale of Relative Dimensions

    • 249
    • December 30, 2025
    • Mods
    • +2
  • Relative Dimensions project image

    Relative Dimensions

    • 28
    • Mods

    The walls between dimensions are growing thin! Explore, get items and traverse dimensions from some well-known franchises, tied to a central narrative thread to discover. Ported from 1.17-1.19 to 1.20.4- Available in english and Spanish!

    • 28
    • May 12, 2026
    • Mods
    • +4
  • Realms of Runeterra: A tale of relative dimensions project image

    Realms of Runeterra: A tale of relative dimensions

    • 210
    • Mods

    New blocks, items, mechanics, stories and adventures await you in an in a 131072-side block map of Runeterra, the world of the world-wide known MOBA League of Legends. An immersive new dimension paired with procedural generation to spice every new world!

    • 210
    • December 31, 2025
    • Mods
    • +4
  • Items, Crafts & World of the Realms of Runeterra project image

    Items, Crafts & World of the Realms of Runeterra

    • 249
    • Mods

    This project introduces all the items, blocks, abilities and other gameplay mechanics not related to the world generation provided by the Core Package of Realms of Runeterra: A Tale of Relative Dimensions

    • 249
    • December 30, 2025
    • Mods
    • +2