You are viewing a potentially older version of this package. View all versions.
NxDimi-ToolLock-1.0.0 icon

ToolLock

Blocks the hammer, hoe, and cultivator independently when an enemy is nearby, sees the player, or hears the player. Each tool can be configured separately or disabled entirely.

By NxDimi
Date uploaded 6 days ago
Version 1.0.0
Download link NxDimi-ToolLock-1.0.0.zip
Downloads 27
Dependency string NxDimi-ToolLock-1.0.0

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

ToolLock

Prevents certain build tools from being used when an enemy is nearby, sees the player, or hears the player.

By default, all three tools are restricted by nearby detection and Seen detection.

This mod combines the functionality of ToolLockWhenSeen and ToolLockWhenEnemyNearby into a single mod, with additional configuration options.

Tools

  • Hammer
  • Hoe
  • Cultivator

Each tool can be enabled or disabled separately.

Detection

  • Nearby – an enemy is within the configured detection distance.
  • Seen – player is sensed by an enemy.
  • Heard – player is targeted by an enemy.

Each detection type can be enabled or disabled separately.

The default detection distance is 20 metres.

Config

Each tool has:

  • Enabled – turns the detection restrictions on or off
  • NearbyBlockedMessage – message shown when blocked while an enemy is nearby
  • SeenBlockedMessage – message shown when blocked while seen
  • HeardBlockedMessage – message shown when blocked while heard

Detection settings:

  • DetectionDistance – distance at which enemies will prevent tool use
  • RestrictWhenNearby – enables the Nearby restriction
  • RestrictWhenSeen – enables the Seen restriction
  • RestrictWhenHeard – enables the Heard restriction

Disable

Each tool can also be disabled entirely.

  • DisableHammer
  • DisableHoe
  • DisableCultivator

Each has its own customizable message.

Disabling a tool takes priority over all detection restrictions.

Feedback

For suggestions or issues, Discord: NxDimi