UncleBugDev-SafeLox icon

SafeLox

Prevents Loxes from damaging or destroying player structures and bases while still fighting monsters normally. Server & client friendly.

Last updated a day ago
Total downloads 32
Total rating 0 
Categories Mods Tweaks Enemies Server-side Client-side Building
Dependency string UncleBugDev-SafeLox-1.0.0
Dependants 0 other packages depend on this package

This mod requires the following mods to function

denikson-BepInExPack_Valheim-5.4.2202 icon
denikson-BepInExPack_Valheim

BepInEx pack for Valheim. Preconfigured and includes unstripped Unity DLLs.

Preferred version: 5.4.2202

README

SafeLox 🐂🛡️

Keep your Valheim bases safe from Lox stomps!
Prevents Loxes (both wild and tamed) from dealing any damage to buildings and structures while fighting nearby monsters.


🌟 English Description

Love breeding or riding Loxes, but hate it when they smash half your base to pieces just because a Greydwarf or Fuling wandered nearby? SafeLox completely blocks all Lox damage against player structures (WearNTear) and destructible props (Destructible), while keeping their full combat damage against enemies and monsters!

Key Features:

  • Zero Structure Damage: Loxes deal 0 damage to walls, floors, roofs, chests, crafting stations, gates, fences, carts, and ships.
  • Monsters Still Get Smashed: Loxes still fight and defend your base against enemies normally.
  • Server & Client Friendly: Patches both Damage and RPC_Damage, working cleanly on dedicated servers (-batchmode -nographics), co-op hosts, and singleplayer.
  • Zero Performance Overhead: Fast attacker check with zero GC allocations.

Configuration (BepInEx/config/com.unclebug.safelox.cfg):

  • Enabled (true) — Master toggle.
  • OnlyTamedLox (false) — false = all Loxes deal 0 structure damage; true = only tamed Loxes.
  • BlockPlayerStructures (true) — Protects all WearNTear structures.
  • BlockDestructibles (true) — Protects Destructible objects.
  • ShowZeroDamageText (false) — If false, cancels the hit cleanly without 0 damage popup spam.

🇷🇺 Описание на русском

Надоело, что прирученные (или дикие) быкоящеры разносят половину вашей базы в щепки каждый раз, когда рядом появляется какой-нибудь грейдворф или гоблин? SafeLox полностью отключает урон быкоящеров по любым постройкам (WearNTear) и разрушаемым объектам (Destructible). При этом быкоящеры продолжают нормально драться с монстрами и защищать территорию!

Главные особенности:

  • 0 урона по структурам: Ни стены, ни сундуки, ни верстаки, ни заборы больше не пострадают от топота быкоящеров.
  • Бой с монстрами сохраняется: По врагам и другим существам быкоящеры наносят полный урон.
  • Оптимизировано для серверов и игроков: Патчатся как локальный Damage, так и сетевой RPC_Damage (работает на выделенных серверах и у клиентов без лагов и спама эффектами).