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

SafeLox

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

Date uploaded a day ago
Version 1.0.0
Download link UncleBugDev-SafeLox-1.0.0.zip
Downloads 34
Dependency string UncleBugDev-SafeLox-1.0.0

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 (работает на выделенных серверах и у клиентов без лагов и спама эффектами).

CHANGELOG

Changelog

1.0.0

  • Initial release of SafeLox.
  • Blocked Lox (Lox, Lox_Calf, $enemy_lox) damage against WearNTear player structures and Destructible objects.
  • Added support for both client-side and server-side (RPC_Damage) protection.
  • Added BepInEx configuration for OnlyTamedLox, BlockPlayerStructures, BlockDestructibles, and ShowZeroDamageText.