
BuildingProtection
Protected build mode which makes buildings have infinite health, ignored by enemies, and prevent players from removing/damaging.Building Protection
Ever had an idea for a dungeon or enemy fortress on your server for your players to fight their way through?
Tired of game updates breaking your building mods, causing your builds to collapse into a pile of chaos?
This may be the mod you're looking for!
Indestructible builds await!
The goal of the plugin is to allow admins or designated builders to create builds that are classified as "non-player" .
Enemies wont attack them. They won't take damage from any source, and won't allow players to remove or destroy them.
Now you can build floating buildings, npc homes, community portal hubs, enemy strongholds, dungeons, server jails, and more!
Initial Setup
This plugin is required on the server AND all clients to properly function.
If single-player only, then only the one client needs the plugin.
When installed on a server, any client that does not have the plugin installed will be disconnected.
This is a safeguard ro prevent players without the mod from demolishing protected builds with their hammer.
NOTE: Server means either a dedicated server, or the player that is hosting a multiplayer game.
Instructions
SERVER
Install on your dedicated server, then reboot it.
By default ALL admins in your adminlist.txt will have the ability to access protected build mode.
To change this, open the KhaibaGaming.BuildingProtection.cfg in Valheim/BepInEx/config and add the specific steamIDs of any players who should have access to protected building to the Permitted IDs field and set Disable Admins to true.
This plugin also uses SmoothBrain's Server-Sync to force clients to use the server's settings, so no need for client configuration.
CLIENT
Install on your client, then launch the game.
If you are playing single-player or hosting a multiplayer game, you will be auto-permitted for protected build mode.
You may give permission to anyone by doing either:
1 - Adding them in the KhaibaGaming.BuildingProtection.cfg located at ( Valheim/BepInEx/config ) by adding their steamID in the Permitted IDs field.
2 - Adding them your adminlist.txt located at ( C:\USER\AppData\LocalLow\Irongate\Valheim\adminlist.txt )
PLAYER
While in the game, type "/protect" in chat to access the options. For now there is simply "/protect on" and "/protect off"
Keep in mind that you must "/protect" off if you want to build normally again.
Proteced build mode resets to off upon logout or disconnect.
What this mod does!
Anything built while in "/protect on" will:
- Have infinite health and take no damage from weather, structural support, or attacks.
- Cost 0 stamina and 0 durability to place, remove, or repair.
- Be completely ignored by enemy monsters (as long as the server and all clients have the mod)
- Be unremovable by players who are not in "/protect on" mode. (as long as the server and all clients have the mod)
- Be distinguishable from unprotected pieces via the health bar of the piece. All pieces that are protected will display their healthbar as lightblue instead of the normal yellow.
You can use the repair function while in "/protect on" to change an existing built unprotected item to protected.
What this mod does not do!
- Provide perfectly cooked fried chicken seasoned with 11 secret herbs and spices.
- Outfit your Viking with a fashionable and festive hat to wear for social outings.
- Turn your build hammer into an all-knowing, all-seeing creator of fantastic builds... well, mayyybe...
- Retrieve loose change and lost socks from the wormhole to the fifth dimension located within your dryer.
- Leave one star reviews on yelp regarding the quality and temperature of the food you ordered.

