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.
MiningCamp
Dvergr miners who go below and come back with ore. Mines look like the game's dungeon entrances and unlock as you defeat bosses.
By noodle_house
| Date uploaded | 2 weeks ago |
| Version | 1.0.2 |
| Download link | noodle_house-MiningCamp-1.0.2.zip |
| Downloads | 743 |
| Dependency string | noodle_house-MiningCamp-1.0.2 |
This mod requires the following mods to function
denikson-BepInExPack_Valheim
BepInEx pack for Valheim. Preconfigured with the correct entry point for mods and preferred defaults for the community.
Preferred version: 5.4.2350ValheimModding-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.0README
Mining Camp
Hire Dvergr miners to do your mining for you.
Build a camp and a mine next to it, then give the camp a chest. Your miners head underground, come back up with ore and put it in the chest while you do something else.
Features
- A Mining Camp (hammer → Misc). Placing it hires your first miner. Open the camp to hire or dismiss miners, add chests, link mines and pause work.
- Nine mines, one for each resource. Each one looks like a dungeon entrance from the game. Only miners can go in. You can't.
- Unlocked by bosses. A mine appears in your hammer once you've beaten the boss that unlocks it (see the table below). Like any recipe, you also need to have picked up its ore at least once.
- Mining continues while you're away. Trips run on world time. On a dedicated server, a trip finishes even if nobody is nearby, and the miner comes up as soon as someone loads the area.
- Miners you don't have to protect. They're saved with the world, can't be hurt, and monsters ignore them.
- Miners on the map. Each miner shows up as a blue arrow on the minimap and the big map, the same way other players do. A miner who is underground is a blue dot on his mine.
- Server-synced settings for bosses, trip times, yields, costs and how each mine looks.
Everyone on a server needs the mod. You can add it to an existing world.
Getting started
- Build a Mining Camp. You need a workbench nearby.
- Build a mine within 40 m of the camp. It links itself to the nearest camp. Mines are big, so leave room. To link a mine that's farther away, press E on the mine or use Link nearest mine in the camp.
- Add a chest. Place a chest within 20 m of the camp, open the camp and click Add nearest chest. Repeat for more chests.
- Leave it running. Hover over a mine to see how many miners are inside and when the next one comes up. Hover over a miner to see what he's doing.
In the camp:
- Hire a miner adds another miner, up to the camp's limit (3 by default).
- Send one home dismisses a miner who is above ground. If all your miners are underground, it calls one up early instead.
- Pause work keeps your miners at the camp. Any miner who is already underground still comes back up.
If a camp has several mines, its miners spread themselves across all of them.
Mines
Amounts are per miner, per trip. You can change all of them in the config.
| Mine | Unlocked by | Trip | Brings up |
|---|---|---|---|
| Stone | Eikthyr | 8 min | 40 Stone |
| Coal | Eikthyr | 8 min | 12 Coal |
| Tin | The Elder | 8 min | 8 Tin Ore |
| Copper | The Elder | 8 min | 8 Copper Ore |
| Iron | Bonemass | 10 min | 8 Scrap Iron |
| Silver | Moder | 12 min | 6 Silver Ore |
| Black Metal | Yagluth | 14 min | 6 Black Metal Scrap |
| Flametal | Fader | 15 min | 5 Flametal Ore |
| Bloodgold | The Frozen King | 18 min | 5 Petrified Tissue |
The Stone Mine costs 20 Wood and 20 Stone. Every other mine costs 20 Wood, 10 Stone and 10 of the ore it produces.
The boss keys match Portal Progression's, so the two mods unlock things in step. Turn
off BossGating to remove the boss requirement completely.
Ore still can't go through portals, unless another mod allows it.
Configuration
The config file is BepInEx/config/com.noodle.miningcamp.cfg. On a server, the server's
values are used. Only admins can change them.
[General]
| Setting | Default | What it does |
|---|---|---|
AdminOnlyPlacement |
off | Only admins can build or remove camps and mines. Anyone can still use a camp that's already built |
MaxWorkersPerCamp |
3 | Most miners one camp can have, including those underground |
MaxWorkersTotal |
12 | Most miners in the whole world |
[Work]
| Setting | Default | What it does |
|---|---|---|
ChestAssignRange |
20 | How far from the camp a chest can be |
MineLinkRange |
40 | How far from the camp a mine can be |
[Cost]
| Setting | Default | What it does |
|---|---|---|
CampBuildCost |
Wood 20, Stone 10, Resin 5 | What the camp costs |
CraftingStation |
workbench | Station needed to build a camp or mine. Leave empty for none |
[Progression]
| Setting | Default | What it does |
|---|---|---|
BossGating |
on | Lock mines behind bosses. When off, you only need to have picked up the ore |
[Mine.Stone], [Mine.Coal] and so on, one section per mine
| Setting | What it does |
|---|---|
<Ore>Boss |
Which boss unlocks the mine. -- means none |
<Ore>TripMinutes |
Real minutes per trip |
<Ore>Yield |
How much comes up per trip |
<Ore>Cost |
What the mine costs to build |
<Ore>Entrance |
Which dungeon entrance the mine looks like |
[Map] and [Debug] (your own settings, not synced)
| Setting | Default | What it does |
|---|---|---|
MapMarkers |
on | Show miners on the minimap and big map |
ListLocations |
off | Write every dungeon entrance name to the log, for use with <Ore>Entrance |
Known issues
- A mine looks like a plain stone arch. The game couldn't find the entrance that
mine is set to use. Turn on
ListLocations, find a name in the log and put it in that mine'sEntrancesetting. - Mines sink into the ground. That's how the game's own crypts sit. Clipping is ignored on purpose, so choose the spot carefully.
- Miners need to walk. A miner walks between the mine and the chests, so there must be a path between them. A mine on a cliff above the camp will leave him stuck.
- Map markers in multiplayer. You only see miners your game knows about. A distant miner shows where he was when you were last nearby. Miners you haven't been near since joining don't show up until you are.
CHANGELOG
Changelog
1.0.2
- The settings on the mod page are now grouped by the same sections as the config file, so each one is easier to find. Nothing in the game has changed.
1.0.1
- Rewrote the mod page and this changelog to be easier to read. Nothing in the game has changed.
1.0.0
- New: Stone Mine. Unlocked by Eikthyr. Brings up 40 Stone every 8 minutes, far more than any other mine. Costs 20 Wood and 20 Stone.
- New: Coal Mine. Also unlocked by Eikthyr. Brings up 12 Coal every 8 minutes. Costs 20 Wood, 10 Stone and 10 Coal.
- Both can be tuned in the config under
[Mine.Stone]and[Mine.Coal].
0.1.10
- Miners are shown on the big map again, as well as the minimap.
0.1.9
- Miners are now shown on the minimap only, not the big map.
0.1.8
- New: miners on the map. Each miner is a blue arrow on the minimap and the big map, pointing the way he faces. Miners who are underground show as blue dots on their mine.
- The markers aren't pins. They aren't saved to your map, shared at a cartography table or removable with a right-click.
- Turn them off with
MapMarkers. It's your own setting, not the server's.
0.1.7
- New: Black Metal Mine. Unlocked by Yagluth. Brings up 6 Black Metal Scrap every 14 minutes. Costs 20 Wood, 10 Stone and 10 Black Metal Scrap.
- The Plains have no dungeon of their own, so it looks like a burial chamber. Change
this with
BlackMetalEntrance.
0.1.6
- Fixed: players could make camps and mines cheaper on a server. Build costs were read from each player's own config file, so editing it made building nearly free. The server's costs now always apply.
- Changes to costs and the crafting station no longer need a restart.
0.1.5
- Fixed: ore could be lost at the end of a trip. A miner's inventory was too small for a large haul, so the ore was dropped. Miners now have a bag big enough for several trips, which also helps when the chests are full.
- Changed: anyone can use a camp. Hiring, adding chests and linking mines are no
longer admin-only.
AdminOnlyPlacementstill limits who can build and remove camps and mines. The oldAdminOnlyPanelsetting is gone and can be deleted from your config. - New:
BossGating. Turn it off to remove every boss requirement at once.
0.1.3
- Fixed: a camp could end up with more miners than its limit (for example "7 of 3"). This happened when a mine was linked to a new camp while miners were still underground.
- Link nearest mine now refuses a mine whose underground miners wouldn't fit in the camp, and tells you how many to wait for.
- A camp that is already over its limit sends the extra miners home on its own, one every few seconds. They drop whatever they're carrying.
- Fixed a miner coming up being counted twice for a moment.
0.1.2
- Added Ko-fi and Discord buttons to the mod page.
0.1.1
Fixes from the first play test.
- Miners' spare suits no longer end up in chests or on the ground. Any that already did are cleaned up.
- Miners come back out at the mine's entrance, not inside or on top of the hill.
- A miner keeps the ore he's carrying when the world reloads.
- Crows no longer hang frozen in the air above the Copper Mine.
- Mines show their ore's icon in the hammer.
0.1.0
- First release: a Mining Camp, six mines unlocked by bosses, and Dvergr miners who go underground and come back with ore.