NxDimi-ToolLockWhenEnemyNearby icon

ToolLockWhenEnemyNearby

Blocks hammer, hoe, and cultivator use while an enemy is nearby. Each tool can be configured separately.

By NxDimi
Last updated a week ago
Total downloads 44
Total rating 1 
Categories Client-side Utility Building AI Generated Deep North Update
Dependency string NxDimi-ToolLockWhenEnemyNearby-1.1.0
Dependants 0 other packages depend on this package

This mod requires the following mods to function

denikson-BepInExPack_Valheim-5.4.2351 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.2351

README

ToolLockWhenEnemyNearby

Prevents certain build tools from being used while an enemy is nearby.

By default, all three tools are restricted.

Tools

  • Hammer
  • Hoe
  • Cultivator

Each tool can be enabled or disabled separately.

Config

Each tool has:

  • Enabled – turns the restriction on or off
  • BlockedMessage – custom message shown when use is blocked

DetectionDistance – distance at which enemies will prevent tool use.

The default detection distance is 20 metres.

1.1.0 Update

  • Added customizable blocked messages for each tool.
  • Added configurable enemy detection distance.
  • Changed the default detection distance from 40 metres to 20 metres.
  • Hammer, hoe, and cultivator are enabled by default.

Feedback

For suggestions or issues, Discord: NxDimi