-
-
Notifications
You must be signed in to change notification settings - Fork 26
How to configure this mod
Since the overwhelming majority of my structures uses nbt files, template pools, and/or processors, you can override all of this with datapacks! That means you can customize the blocks in those structures with other mod's blocks or add pieces of other mod's villages into RS's villages! If you decide to customize this mod, open up one of the sections below for your MC version, download the config datapack, make your changes, and then put the edited datapack into your world's save folder.
As of 1.18.2 and newer, most of Repurposed Structures can be changed by datapack now. Including turning off or on structures or changing spawnrates. Click the below link to get an example datapack to edit and some pointers for what to edit to turn off structures. There's a huge amount of stuff you can change by datapack though such as changing what height RS Mineshafts spawn at or how large RS villages are and much more that was not configurable in 1.18.1 and below. Enjoy!
Click here to go to config datapack download page
Note: Be sure to read the instructions in the above link's page to make it easier to know what to edit
By default, RS will do its best to import modded loot into its structures's loot. If this is not desired behavior, you can disable this in the normal RS config file in config folder above mods folder.
Furthermore, you can make datapacks to modify or change how RS structures look! Here's a flat world of all the pieces of my structures. Use this to make editing and overriding structure pieces easier with datapacks: Repurposed Structures - pieces world (click here)**
For the expert datapackers, there's actually a hidden neat way to add new pieces to any Jigsaw Structure without overriding their pool file! (Villages, outposts, all of RS's structures minus mansions, etc) For example, instead of overriding
data\repurposed_structures\worldgen\template_pool\village\birch\houses.json
to add new houses to my Birch Village, replaceworldgen\template
in the datapack withpool_additions
and have the template pool file only have the entries you want merged into the main pool file. Repurposed Structures will detect these files from ALL datapacks and merge the pool_additions pool entries into the actual template pool file that the path points to. Yes, Repurposed Structures will read all pool_additions files from all datapacks that even have the same path so that the datapacks do not override each other's pool_additions! Neat stuff! And it works with other pools too! Just make sure the piece you are adding has a Jigsaw Block with the right name so the actual structure can connect and spawn the piece.To help you with this cool pool_additions feature, this 18 minute tutorial should help walk you through creating a building, saving it, and adding it to RS's structures with a datapack! https://youtu.be/kzRQrQqlYjw
To reach this mod's config file, go into the config folder that is above the mods folder and go into the repurposed_structures-forge folder to change the configs. The config is split up into many files for better organization and ease of editing. Then exit/restart Minecraft for all changes to take effect. Do note that the config will affect all worlds so keep that in mind
Right now, there are lots of config options. The big one that you may be interested in is the spawnrate config for every structure and yes, you can even fully turn off the structures too. The config comments will help walk you through on how to adjust the rates. Furthermore, you can even blacklist dimensions or biomes as well! For some structures, you can change the maximum and minimum y value that they can start their generation at and far more! Check out the config for everything you can do!
Furthermore, you can make datapacks to modify or change a huge amount of stuff in my mod including modifying how structures look! Here's a flat world of all the pieces of my nbt-based structures. Use this to make editing and overriding structure pieces easier with datapacks: Repurposed Structures - pieces world (click here)
If you want to change the loot tables that the structures in this mod uses, you can override my loot tables with a data pack! Here's a datapack with the default loot tables: Repurposed_Structures-Loottables (click here)
The mob spawner for all none-nbt based structures can be changed with datapacks as well! You can download the spawner datapack here and change the entries inside the json files to add, remove, or change mob chances in spawners!: Repurposed_Structures-Mob_Spawners (click here)
And all structure pieces such as Wells, Villages, Outposts, Shipwrecks, Pyramids, and Igloos can also be overridden with datapacks. Furthermore, the template pools that holds structure pieces for Villages and other structures can also be overridden with datapacks to add your own pieces to the villages or other structures! You can find what pieces or pools can be replaced and their filenames here but be sure to switch the branch to the MC version you are on: Overridable structure nbt files (click here)Overridable structure pool files (click here)
For the expert datapackers, there's actually a hidden neat way to add new pieces to any Jigsaw Structure without overriding their pool file! (Villages, outposts, all of RS's structures minus mansions, etc) For example, instead of overriding
data\repurposed_structures\worldgen\template_pool\village\birch\houses.json
to add new houses to my Birch Village, replaceworldgen\template
in the datapack withpool_additions
and have the template pool file only have the entries you want merged into the main pool file. Repurposed Structures will detect these files from ALL datapacks and merge the pool_additions pool entries into the actual template pool file that the path points to. Yes, Repurposed Structures will read all pool_additions files from all datapacks that even have the same path so that the datapacks do not override each other's pool_additions! Neat stuff! And it works with other pools too! Just make sure the piece you are adding has a Jigsaw Block with the right name so the actual structure can connect and spawn the piece.To help you with this cool pool_additions feature, this 18 minute tutorial should help walk you through creating a building, saving it, and adding it to RS's structures with a datapack! https://youtu.be/kzRQrQqlYjw
If you get stuck or confused on how to configure something, just ask and I'll try and help out!