A mod for using your blueprints created with PlanBuild as Locations created on world generation in Valheim.
You will have to make a new folder at <Valheim>\BepInEx\config\PlanBuild\locations
on your game installation folder (it doesn't work on the Thunderstore profile) named exactly as the world you want the locations to be generated to.
Copy over your blueprint files found in <Valheim>\BepInEx\config\PlanBuild\blueprints
that you want to be spawned into the world. Blueprint locations have their own file name extension: .bplocation
. This is necessary so PlanBuild doesn't load them as blueprints.
Create a new section in those files: #Location
which holds all the properties you need to change location generation. You can use all properties which are used by the vanilla locations (see the Jötunn tutorial for all the properties: https://valheim-modding.github.io/Jotunn/tutorials/zones.html#locations-1).
Here is an example of the location section spawning a blueprint in the Meadows
and Plains
, trying to place a total of 200
instances, with a minimum altitude of 0
(above water), checking in a radius of 7m
and trying to clear that area of vegetation:
#Location
Biome:Meadows,Plains
Quantity:200
MinAltitude:0
ExteriorRadius:7
ClearArea:true
Now create a new world in Valheim with the same name as the folder you created and it will load and place your blueprints in randomly on the map as per the location properties.
It is recommended to use a mod manager to install PlanBuildLocations and all of its dependencies.
If you want to install it manually, load all of these mods as they are all required for PlanBuildLocations to function and install them according to their respective install instructions:
Finally extract all of the contents of the PlanBuildLocations mod archive into <Valheim>\BepInEx\plugins\PlanBuildLocations
The original PlanBuild mod was created by MarcoPogo & Jules
This companion mod was coded by Jules
Made with Löve and Jötunn
Source available on GitHub: https://github.com/sirskunkalot/PlanBuildLocations. All contributions welcome!
You can find me at the Jötunn Discord (Jules#7950
).