8
This tutorial aims to teach a simple way to add custom structures to Minecraft by the use of structure blocks and datapacks.
Your first step is to create the datapack folder, to do that look here [url=minecraft.gamepedia.com/Tutorials/Creating_a_data_pack
]minecraft.gamepedia.com/Tutorials/Creating_a_data_pack[/url]
To format the pack to generate the structures you will make inside the folder called data, create a new folder and call minecraft. Inside the minecraft folder, create a folder called structures, then create a folder called "ruined_portal". Inside the ruined_portal folder will go .nbt files which describe the structure. So it will look like this datapack name/data/minecraft/structure/ruined_portal
Now create a new flat world and type /give @s minecraft:structure_block. This will give you a structure block.
Place the structure block on the ground and click it. You will see a gui with a text box at the top and a button for cycling through the different modes. You should only be concerned with the text box. In the text box, copy and paste a string from below. Then press "load".
After that press load. You should see a ruined portal structure. Destroy all the blocks of the portal until you have a blank outlined shape. In this structure build whatever you want as long as it fits in the shape. You can include entities if you want. Chest loot does not draw from the ruined portal loot table but either stays empty or keeps whatever you place in it. However, you can use an NBT editor to edit the chest loot and make it draw from any chest loot table.
After you have built your structure, in the structure block go to save and choose "Include Entities" if you have entities in the build. Press the "save" button underneath the entities button.
To access you saved .nbt file, exit the world, go to world settings and open up your world folder. Inside the "generated" folder find you .nbt file. Copy and paste the file into you datapack under "ruined_portal".
To test that you made your datapack correctly, put your datapack into the datapacks folder of a new world and get a structure block. On the load screen type in the ruined portal string that you edited. Press load and you should see your structure. If not, make sure you did everything correctly and did the correct ruined portal type. To add more custom structures, just repeat the process with the other types of portal.
Your first step is to create the datapack folder, to do that look here [url=minecraft.gamepedia.com/Tutorials/Creating_a_data_pack
]minecraft.gamepedia.com/Tutorials/Creating_a_data_pack[/url]
To format the pack to generate the structures you will make inside the folder called data, create a new folder and call minecraft. Inside the minecraft folder, create a folder called structures, then create a folder called "ruined_portal". Inside the ruined_portal folder will go .nbt files which describe the structure. So it will look like this datapack name/data/minecraft/structure/ruined_portal
Now create a new flat world and type /give @s minecraft:structure_block. This will give you a structure block.
Place the structure block on the ground and click it. You will see a gui with a text box at the top and a button for cycling through the different modes. You should only be concerned with the text box. In the text box, copy and paste a string from below. Then press "load".
List of Strings
ruined_portal/portal_1
ruined_portal/portal_2
ruined_portal/portal_3
ruined_portal/portal_4
ruined_portal/portal_5
ruined_portal/portal_6
ruined_portal/portal_7
ruined_portal/portal_8
ruined_portal/portal_9
ruined_portal/portal_10
ruined_portal/portal_2
ruined_portal/portal_3
ruined_portal/portal_4
ruined_portal/portal_5
ruined_portal/portal_6
ruined_portal/portal_7
ruined_portal/portal_8
ruined_portal/portal_9
ruined_portal/portal_10
After that press load. You should see a ruined portal structure. Destroy all the blocks of the portal until you have a blank outlined shape. In this structure build whatever you want as long as it fits in the shape. You can include entities if you want. Chest loot does not draw from the ruined portal loot table but either stays empty or keeps whatever you place in it. However, you can use an NBT editor to edit the chest loot and make it draw from any chest loot table.
After you have built your structure, in the structure block go to save and choose "Include Entities" if you have entities in the build. Press the "save" button underneath the entities button.
To access you saved .nbt file, exit the world, go to world settings and open up your world folder. Inside the "generated" folder find you .nbt file. Copy and paste the file into you datapack under "ruined_portal".
To test that you made your datapack correctly, put your datapack into the datapacks folder of a new world and get a structure block. On the load screen type in the ruined portal string that you edited. Press load and you should see your structure. If not, make sure you did everything correctly and did the correct ruined portal type. To add more custom structures, just repeat the process with the other types of portal.
12
Isn't is a guide to replacing ruined portals?
Yes, this a guide to replacing ruined portals as this is all I used to know how to do.
I know how to make recipe datapacks...
Does it have a replace another structure or could I make a new one?
It doesn't have to replace a structure, but I do not know how to not replace a structure yet.
I ALSO WANTED TO KNOW HOW TO REPLACE STRUCTURES I THINK IT IS JUST IN THE MINECRAFT NAME SPACE WITH A STRUCTURE FOLDER
I've successfully added a structure but I can only get it through structure blocks. Is there a way to make it replace the structures in minecraft so it generates in normal worlds or even not replace it and generate in a world?
Thanks
Thanks
To do that get the .nbt file from the world save folder under generated, create a data ack and format it like this: data pack name/data/minecraft/structures/ruined_portal/(Your structure file} and rename the file to ruined_portal_1.nbt.
Then add the datapack to a new world and try to find your new structure.
Then add the datapack to a new world and try to find your new structure.
I've tried everything. /locate, exploring putting it in my namespace folder instead of minecraft, but i just can't find the structures. I've also checked for errors and mistakes. Is there anything you know?
Thanks
Thanks
it is because the structure is replacing ruined portals and ruined portals have 13 types. If you want to find your structure more often copy your structure file into a total of 10 ruined portal files. This will give you a high chance of finding them and will tell if you did it right.
If you edit a structure's NBT file directly after you've created it -- NBTExplorer is an easy-to-use, free option -- you can edit a chest (or barrel, or shulker box) such that it will draw from whatever loot table you like. There's no need to stick with pre-defined chest contents. :)
Ok, thanks
