You are viewing a potentially older version of this package. View all versions.
virtualbjorn-HackAndSap-0.1.0 icon

HackAndSap

Get Hacking: chop adjacent fellable trees and logs with vanilla axe attacks, regrow old stumps, and decay abandoned timber.

Date uploaded 2 weeks ago
Version 0.1.0
Download link virtualbjorn-HackAndSap-0.1.0.zip
Downloads 76
Dependency string virtualbjorn-HackAndSap-0.1.0

This mod requires the following mods to function

denikson-BepInExPack_Valheim-5.4.2333 icon
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.2333
ValheimModding-Jotunn-2.29.1 icon
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.29.1

README

Hack 'n Sap

Get Hacking. Stand directly beside a tree or log, aim at it, and press Use to start chopping with your equipped axe.

Hack 'n Sap uses the axe's normal primary attack. Stamina, durability, Wood Cutting skill, damage, effects, drops, and target health all remain vanilla. Cancel whenever you like—the next session resumes from the tree or log's actual remaining health.

What it does

  • Adds an adjacent Use-key interaction to fellable trees and felled logs.
  • Repeats ordinary axe swings without replacing Valheim's damage pipeline.
  • Supports every discovered tree that produces logs, including Ancient, mature Yggdrasil, and Ash trees using the standard TreeBase/TreeLog pipeline.
  • Turns old, unprotected stumps into natural saplings of their source tree.
  • Decays abandoned logs away without drops after a configurable delay.
  • Protects stumps and logs inside player-base areas by default.
  • Synchronizes gameplay configuration through Jotunn.

Controls

  • Use: start or stop hacking while aiming at an adjacent tree or log.
  • Moving, dodging, staggering, being knocked back, attacking manually, changing tools, or leaving the target stops the session.

An equipped axe with chop damage and remaining durability is required.

Configuration

You can independently configure tree and log interactions, an optional distance cap, stump renewal days, log decay days, base protection, and diagnostic logs.

Installation and multiplayer

Install with r2modman or Thunderstore Mod Manager, or place the DLL in BepInEx/plugins after installing BepInEx and Jotunn. Every multiplayer peer and the server should install the mod.

CHANGELOG

Changelog

0.1.0

  • Added adjacent Use-key cutting interactions for discovered fellable trees and felled logs.
  • Added repeated equipped-axe attacks using vanilla stamina, durability, Wood Cutting skill, damage, effects, drops, and persistent target health.
  • Added runtime support for all trees using Valheim's standard log-producing pipeline, including Ancient, mature Yggdrasil, and Ash trees.
  • Added owner-authoritative stump-to-sapling renewal using the exact source-tree identity.
  • Added inactivity-based decay that removes abandoned logs without drops.
  • Added configurable player-base protection and synchronized gameplay settings.