You will learn the fundamentals for creating a basic structure using MCreator in this guide.
Building the structure
You will need to build a structure that is within 32x32x32 in size before you start to make your element. Follow the steps below to build and export your ".NBT" structure file.
- Start the test environment.
- Make a new world. (We suggest using a flat world with no generated structure and use creative mode. With command enabled)
- Build your structure.
- Stay within the size of (32 by 32 by 32) blocks.
- You can use your own blocks for the structure too.
- When you are ready to make your structure file follow the steps below.
- Type /give <press tab> minecraft:stucture_block
- Open F3 and find the corner where all the lines meet each other.
- Place your structure block at the bottom of the axis where all the lines meet each other near your structure.
- Right-click the structure and click data until you have a button where it says save.
- The top cords are relative to the structure blocks location. The bottom cords are for the size relative to the structure block where you opposite corner of the structure block is located at.
- Mesure you structure and type the appropriate cords to make your structure fit in the boundary box outline.
- When you are happy with the outline you can name your structure something you can remember and press the save button on the right side of the UI.
- First, go to the workspace.
- Next click on Resources.
- Next click on the tab called Structures.
- Next click on Import structure from Minecraft.
- Next, select the structure that you just made.
- Click ok.
Creating the mod element
Creating and naming
- First, go to the workspace tab.
- Next click on the Mod elements tab.
- Next, click the add button and select the Structure spawn element.
- Enter the name of your element.
|Structure to spawn||This is the model which you will be selecting to spawn.|
This is how rare or common the structure can spawn per 1,000,000 chunks
Setting this value too high might cause slow world generation.
|Randomize structure rotation||If checked then the structure can rotate different directions.|
|Spawn height offset||You can control the offset of your structure if it is buried or floating using this setting.|
|Spawn world types||
What worlds that the structure can spawn in.
|Restrict spawn per block||If checked you can control the structure to spawn only where certain blocks are located in the world. This is great for underground structures.|
|Spawn block types (if restricted)||The blocks to replace if you check the setting above.|
|Restrict spawn per biome||If checked you can control the structure to spawn only in specific biomes.|
|Biome to spawn in (if restricted)||The biomes which the structure can generate in.|
Finding your structure
If you are not sure if your structure is spawning or if it just varies rare you can increase the Spawn probability value temeararily to test to see if the structure is spawning at all. If you find your structure then you know it's just very rare and the value needs to be slightly increased for the spawning probability.
Structure voids and blocks.
Structure blocks is a built-in vanilla block that can save builds as .NBT structures. You can use structural voids to allow the structure to let other blocks override air blocks in your structure when it is generated. For example, if you want your structure to be buried on the inside you can fill the inside of the structure with structure voids using the /fill command to allow natural blocks to spawn where the voids are. Also, voids will not generate in your structures they are just placeholder blocks to let other blocks override the area on generation.
If you prefer to watch the video, you can find the wiki page above summarized in a video:
Another structures tutorial: