Valheim
You are viewing a potentially older version of this package. View Latest Version
Install

Details

Date Uploaded
19 hours ago
Downloads
50
Size
11KB
Dependency string
Matheba-OneHitChop-1.0.0
ADDatHost Valheim hosting
€1

OneHitChop

Fell trees with a single axe hit. Built for Valheim 0.221.12 + BepInEx 5.4.23.

  • Works in multiplayer (dedicated servers and player-hosted games) with no mod required on the other side.
  • Affects only your own character — everyone else chops normally.
  • No special axe. It's a toggle you flip on and off mid-game.

Usage

Action Default
Toggle in-game F9
Configuration screen F1 (Configuration Manager) -> OneHitChop

Ships disabled. Press F9 (or tick the option under F1) and hit a tree — it falls.

Options

Section Option Default What it does
1 - General One-hit chopping false The main toggle.
1 - General Toggle hotkey F9 Ignored while you are typing in chat or the console.
1 - General Show on-screen message true Centre-screen message when you use the hotkey.
2 - Targets Fallen logs true The log a tree drops also breaks in one hit.
2 - Targets Stumps and bushes true Stumps, saplings and choppable bushes.
2 - Targets Ignore axe tier requirement false Lets a weak axe fell oak and birch. Breaks normal progression — enable only if you want that.

How it works (and why there is no 999999 damage)

Valheim calls Damage(HitData) on the client that swung, and only then sends the RPC to the object's owner to apply it. The mod hooks that point, reads the tree's current health from its ZDO, compensates for the tree's resistance to chop damage, and raises the swing to exactly what is needed to bring it to zero.

The number that pops up on screen is the tree's real health, not an absurd value. And because the damage travels through the game's normal path, the server accepts it without running the mod.

Targets: TreeBase (standing tree), TreeLog (fallen log) and Destructible of type Tree (stumps). Only chop-damage hits from the local player are affected — fire, arrows and other players are left alone.

Building

dotnet build src/OneHitChop/OneHitChop.csproj -c Release

The build stages the Thunderstore package and writes dist/OneHitChop-<version>.zip plus a matching dist/thunderstore.toml. The only place the version lives is <Version> in src/OneHitChop/OneHitChop.csproj — the plugin assembly, the [BepInPlugin] attribute, manifest.json and thunderstore.toml are all generated from it.

  • .\deploy.ps1 — build and install into the local Thunderstore Mod Manager profile.
  • .\publish.ps1 — build and upload to Thunderstore with tcli.
DatHost — Valheim server hosting, first month for one euro
DatHost — Valheim server hosting, first month for one euro
DatHost — Valheim server hosting, first month for one euro
DatHost — Valheim server hosting, first month for one euro
DatHost — Valheim server hosting, first month for one euro