Please disclose if any significant portion of your mod was created using AI tools by adding the 'AI Generated' category. Failing to do so may result in the mod being removed from Thunderstore.
HomeBubble
Keep enemies out of your base with a protective bubble.
| Date uploaded | 3 weeks ago |
| Version | 0.3.2 |
| Download link | Aestelwen-HomeBubble-0.3.2.zip |
| Downloads | 101 |
| Dependency string | Aestelwen-HomeBubble-0.3.2 |
This mod requires the following mods to function
ValheimModding-Jotunn
Jötunn (/ˈjɔːtʊn/, 'giant'), the Valheim Library was created with the goal of making the lives of mod developers easier. It enables you to create mods for Valheim using an abstracted API so you can focus on the actual content creation.
Preferred version: 2.30.2denikson-BepInExPack_Valheim
BepInEx pack for Valheim. Preconfigured with the correct entry point for mods and preferred defaults for the community.
Preferred version: 5.4.2360README
HomeBubble
Keep enemies out of your base with a protective bubble.
The bubble even protects against projectiles and rain.
Keep the bubble generator fuelled with bones, and toggle it on and off with Shift + E.

Building It
The bubble requires a Workbench, Forge, Stonecutter and Artisan Table all within build range, including range extended by BenchLink. Each bubble claims one set of these stations, so two bubbles cannot be built on the same set.
Find it in the Hammer's Defence tab.
| Material | Amount |
|---|---|
| Iron | 5 |
| Copper | 5 |
| Dragon Tear | 2 |
Bubble Size
The bubble grows as you build upgrades on the Workbench and Forge. If one of the bubble's four stations is destroyed, the bubble goes down. Rebuild the station within range and it comes back.
Configuration
Settings are in the BepInEx config file javidahmed64592.homebubble.cfg.
You can change the bubble's size with and without upgrades, how long a bone lasts, how much fuel the generator holds, and the bubble's colour, opacity and distortion.
License
This project is licensed under the MIT License - see the LICENSE file for details.
CHANGELOG
Changelog
1.0.1
- The Black Forge and Galdr Table now count when they're in range through BenchLink, like the four required stations already did. Their upgrades make the bubble bigger and add to its damage resistance. Before, they only counted within their own build range of the bubble.
1.0.0
- First stable release.
- Your food and the Rested effect no longer wear off while you are inside a bubble that is up, so you can get ready for an adventure and leave in your own time. Food still heals you over time as usual. Turn it off with the new synced
Bubble.PauseTimerssetting.
0.8.0
- The bubble no longer has a second "Defence" tab of its own in the build menu. It's only on the vanilla Defence tab, next to the shield generator.
- The bubble holds up to 100 bones by default, up from 50, so it lasts longer through sieges. Existing config files keep their current
MaxFuelvalue, so change it there to get the new default.
0.7.0
- Monsters now attack the bubble when someone they were fighting runs inside, instead of fleeing. They come up to the edge on their side and strike the wall, or shoot at it from range. Their allies nearby that are already in the fight join in. After 30 seconds a monster loses interest and wanders off, but hitting it from inside starts its time over, so fighting back keeps them at the wall. They go back to the chase if their target comes back out. Monsters that find players already inside still keep away. Flying monsters keep away as before. New
Monsterssettings, synced with the server:AttackBubble(on) andSiegeSeconds(30). - Hits on the bubble use up far more bones: one bone per 200 damage, counting the monster's star level and the world's difficulty, so a troll hit costs about 0.35 bones and a two-star troll's about 0.7. Projectiles hitting the bubble use the same rate (vanilla was one bone per 500). Set it with the new synced
Monsters.DamagePerBonesetting. - Every upgrade on the bubble's stations makes it take 1% less damage from monster hits and projectiles, so a fully upgraded bubble takes about 20% less. Set it with the new synced
Monsters.ResistPerUpgradesetting (0 turns it off). Hovering over the generator shows the bubble's damage resistance and upgrade count. - Players in or near a bubble that is being hit get a message with the bones it has left, every few seconds.
- New
startsiege <1-5>console command (needsdevcommands) for testing: it spawns a group of monsters from the Mountains (1), Plains, Mistlands, Ashlands or Deep North (5), already hunting you. Use it inside a bubble and they attack the bubble at once. - The minimap and the large map shade the area each loaded bubble covers in the bubble's tint, with a brighter edge. Overlapping bubbles show as one shape. Turn it off with the new
MapCoveragesetting under[Look].
0.6.0
- Monsters no longer wander into a bubble. Before, they only kept out when they had no target, or when their target was inside, so a monster chasing something outside could follow it in. Now a monster that gets inside steps back out: if what it is fighting is still outside, it stops just past the edge and carries on, so monsters can fight right up to the bubble. If its target is inside too, it flees. Tamed creatures and the Dvergr are left alone, as at the trader's camp.
- Raids no longer start on players inside a bubble. Before, a raid could start while you were safe inside, and its enemies gathered around the bubble with no way in. A raid that a bubble held off isn't lost: it starts later, once a player has spent 3 minutes at least 30 metres beyond the edge of every bubble. It starts wherever that player is, even away from the base, as long as the biome and the bosses they have beaten allow it. New
Raidssettings, synced with the server:BlockRaidsandDeferRaids(both on),DeferMinutes(3) andDeferDistance(30). This also works on dedicated servers, where the bubbles near players aren't loaded. - The Hammer's highlight no longer lights up the whole bubble bright blue when you hover over the generator; only the generator itself is highlighted, and it no longer flickers. The generator's glow updated a few times a second and wiped the highlight for a frame each time (vanilla generators do this too), and its glow blinked off when the highlight ended.
- A fuelled bubble no longer hums. Vanilla muted the generator's powered hum on a bubble fuelled up from empty but played it at full volume after logging back in, so the same bubble was silent one session and loud the next. The low-fuel hum still plays when bones run low.
- The generator's sounds are quieter. The new
Sound.Volumesetting (default 0.4, where 1 is the vanilla volume) sets how loud they are. - You get a message when you are in or near a bubble that is low on bones, and again every 5 minutes while you stay and it stays low. The new
Warnings.LowFuelWarningsetting sets how few bones count as low (default 5, 0 turns it off). - Moved the source files into folders (
Core,Bubble,Prefabs,Patches), leaving onlyPlugin.csat the root, with each Harmony patch in its own file underPatches. No behaviour change.
0.5.0
- The bubble now always uses the most upgraded station of each type in range, like BenchLink picks a cluster's station, and its size follows. This includes the optional Black Forge and Galdr Table. Previously a destroyed station was replaced by whichever unclaimed station was closest, and the bubble never switched to a better one, such as the original station once it was rebuilt.
- The BepInEx log now says when a bubble claims its stations, switches to a different station, and goes down because none is left.
- Switching a bubble on or off with Shift + E now needs access to any ward it stands in, like opening a chest, so other players can't turn off your bubble.
- The switch is now handled by whoever's game is looking after the generator, so two players toggling at once can't overwrite each other.
BaseRadius,FullRadius,MinutesPerBoneandMaxFuelare now synced from the server, so every player sees the same bubble size and fuel use.- The hover hint now shows your own key bindings instead of always saying Shift + E.
- The piece, messages and hover text can now be translated (
Translations/English.json), and the station names use the game's own translations. - Added a CI check that the version matches in every file.
- Moved
package.shinto.github/scriptsand made it the same for every mod: the name, version and DLL now come frommanifest.jsonand the.csproj.
0.4.0
- Overlapping bubbles now merge into one outer surface, like the vanilla shield generators, instead of showing each other's walls from the inside.
0.3.3
- The bubble now also grows as the Black Forge and Galdr Table in range are upgraded. They are still not required to build the bubble or keep it up.
0.3.2
- Updated the BepInExPack_Valheim dependency to 5.4.2360.
0.3.1
- A bubble can now use a station that is out of its own build range but still lets you build there, such as one linked by BenchLink.
0.3.0
- Added an
.editorconfig,Directory.Build.propsand a CI workflow that runsdotnet format, a Release build and a NuGet vulnerability check. - Reformatted the code to match the new code style rules (no behaviour change).
- Added the
UnityEngine.AudioModuleandUnityEngine.ParticleSystemModulereferences so local builds compile. - Tidied up packaging scripts and workflow files.
- Added a
.gitattributesto keep line endings consistent. - Moved the local Valheim install paths into
Directory.Build.props; setVALHEIM_DIRandBEPINEX_PROFILE_DIRonce to build every mod without editing the.csproj. - Updated README and icon.
0.2.1
- Updated README to include the new
MaxFuelconfiguration option.
0.2.0
- The bubble now becomes more red and fades as it loses fuel.
- The bubble can now be toggled on and off by pressing
Shift + Eon the generator. - The maximum amount of fuel the generator can hold is now configurable.
0.1.0
- Added the Home Bubble: a buildable piece (5 Iron, 5 Copper, 2 Dragon Tears, Hammer, Defence tab) that surrounds your base with a protective bubble. Monsters keep away from it just as they do from a trader's camp, but you can still build inside it.
- Looks like the force field around Haldor's camp, with a configurable colour, solidity and distortion.
- Needs a Workbench, Forge, Stonecutter and Artisan Table all within build range to place. Each bubble claims the closest unclaimed set of the four, so two bubbles cannot share crafting stations.
- The bubble grows with upgrades: it starts at 24m radius and reaches 48m radius once every upgrade is built on its four stations. Destroying upgrades shrinks it again.
- Fuelled with bones like the shield generator. Bones also burn down over time, and projectile hits drain it further.
- If one of its crafting stations is destroyed, the bubble drops and explains why when you try to add bones. Rebuilding the station in range brings it back.
- Configurable:
BaseRadius,FullRadius,MinutesPerBone, and the bubble'sTint,TintOpacityandDistortion.