HarvestTurrets

版本 v1.0.1·更新於 2026-10-03

Three automated ballista variants: Lumberjack (fells trees), Quarry (mines rock) and Huntsman (hunts wild animals) - set them up and let them gather for you.

模組介紹 作者原文

Harvest Turrets

Adds three automated ballista variants that gather the world for you. Clones of the vanilla Ballista — point one at a resource and it works on its own: aiming, warming up, and firing with no ammo and no interaction.

A Valheim BepInEx 5 plugin built on Jotunn.

Turrets

| Piece | Fires | Targets | Cost |

|-------|-------|---------|------|

| Lumberjack Turret | Chop bolt | Trees (TreeBase) and logs (TreeLog) | 20x Wood, 10x Fine Wood, 5x Iron |

| Quarry Turret | Pickaxe bolt | Rocks and ore (MineRock, MineRock5) | 30x Stone, 10x Iron, 5x Bronze |

| Huntsman Turret | Pierce bolt | Wild animals (deer, boar,...) | 15x Fine Wood, 10x Iron, 10x Leather Scraps |

All three are built from the Hammer build menu under Misc.

Requirements

  • BepInEx 5 (denikson-BepInExPack_Valheim)
  • Jotunn 2.30.x (ValheimModding-Jotunn)

Installation

  • Install through your mod manager (recommended) — BepInEx and Jotunn are installed automatically.
  • Manual: drop HarvestTurrets.dll into BepInEx\plugins\.

How to use

  • Restart the game after installing (the build pieces are registered at startup).
  • Build one of the three turrets from the Hammer under Misc and place it near the resource you want worked.
  • Walk away. While it has a target the turret scans every 0.4 s, swings to face the nearest valid target, holds its aim for the warm-up, then fires a bolt that deals the right damage type with a high enough tool tier to actually fell trees / mine rocks. With nothing in range it waits 2 s before scanning again.
  • The Huntsman Turret leaves tamed animals and hostile monsters alone by default — enable TargetMonsters / TargetTamed (with livestock warnings) in config if you want them hunted too.

How it works

  • Damage is applied when the bolt lands, using vanilla damage types (Chop / Pickaxe / Pierce), so drops, log spawning, and death behaviour are all vanilla.
  • No ammo required — turrets fire on a configurable cooldown.
  • Targeting is owner-authoritative; each turret only acts if it owns its zone data (co-op safe).

Configuration

Generated on first launch at BepInEx\config\com.harvestturrets.harvestturrets.cfg.

General

| Key | Default | Description |

|-----|---------|-------------|

| Enabled | true | Master toggle. |

| AddBuildPieces | true | Register the three pieces (requires restart). |

| ShowProjectile | true | Draw the bolt flying to the target. |

| TintModels | true | Tint each turret so the variants are visually distinct (requires restart). |

| Scale | 0.5 | Uniform model scale (requires restart). |

Lumberjack / Quarry / Huntsman

| Key | Lumberjack | Quarry | Huntsman | Description |

|-----|-----------|--------|----------|-------------|

| Range | 40 | 40 | 45 | Detection range in meters. |

| Damage | 60 | 60 | 90 | Damage per shot. |

| AttackInterval | 1.5 | 1.5 | 1.2 | Seconds between shots. |

| ToolTier | 4 | 4 | 0 | Tool tier per shot (must be high enough for the target). |

| Warmup | 0.4 | 0.4 | 0.3 | Seconds of held aim before firing. |

| ProjectileFlightTime | 0.25 | 0.25 | 0.2 | Seconds for the bolt to reach the target. |

| TurnRate | 30 | 30 | 40 | Aim swing speed. |

Huntsman only

| Key | Default | Description |

|-----|---------|-------------|

| TargetAnimals | true | Hunt non-tamed animals (deer, boar, etc.). |

| TargetMonsters | false | Also hunt hostile monsters. |

| TargetTamed | false | Also hunt tamed animals (will shoot your livestock). |

Changelog

See CHANGELOG.md.

Support

If this mod has made your journey through the Tenth World a little better, consider tossing a coin into my Ko-fi jar: Your support keeps the forge hot and the mead flowing! Skål!

安裝與使用 安裝:BepInEx 外掛

  1. 本站下載的壓縮包就是模組本體,通常是 BepInEx 外掛(解壓後得到 .dll 或外掛資料夾)。
  2. 建議流程:用社群模組管理器(如 r2modman)選中本遊戲後匯入該模組,管理器會自動裝好 BepInEx 前置並處理依賴。
  3. 手動流程:先在遊戲目錄裝好 BepInEx 載入器,再把解壓出的 .dll 或外掛資料夾放進 BepInEx/plugins/。
  4. 啟動遊戲,BepInEx 控制台會列印載入日誌;確認這個模組出現在日誌裡即為安裝成功。

帶「前置依賴」的模組需要一併安裝,否則不會載入。功能開關通常在遊戲內或外掛自帶的設定檔裡調整。 多人連線時,主機與所有用戶端需要安裝一致的模組。

前置依賴

下面這些內容需要先安裝,否則該模組不會生效:

denikson-BepInExPack_ValheimValheimModding-Jotunn

檔案與校驗

檔案名稱
HarvestTurrets-1.0.1.zip
檔案大小
17.8 KiB