You are viewing a potentially older version of this package.
View all versions.
GetOffMyLawn
Set the health of player-placed items in the game to a configurable health value. Reduces monster attacks on player objects. Ability to ignore stability.
Date uploaded | 2 years ago |
Version | 1.3.1 |
Download link | ComfyMods-GetOffMyLawn-1.3.1.zip |
Downloads | 2036 |
Dependency string | ComfyMods-GetOffMyLawn-1.3.1 |
This mod requires the following mods to function
denikson-BepInExPack_Valheim
BepInEx pack for Valheim. Preconfigured and includes unstripped Unity DLLs.
Preferred version: 5.4.2202README
Set the health of player-placed items in the game to a configurable (default: 100,000,000) health value. Reduces monster attacks on player objects. Recommended mod for dedicated servers so that players passing by your building doesn't mean mobs tear your building down.
Recommended to use with
- Configuration Manager. Then press F1 and look for the Get Off My Lawn Mod and change the health value.
- Building Health Display so you can see that you've set the health of things.
Usage Notes
- Health will be set when you place the item or when you use the repair hammer on it. You can only change the health of building pieces that you own or are permitted on.
- You can activate a ward to set the health value of all building pieces within range to the configured value.
- You can use this mod to ignore stability. Press F1 and find "GetOffMyLawn". Change the PieceValue by pressing "ctrl+A" and then just hold down the 1 key until you see it turn into 1.111111E+17 at current maximum. This makes makes it "ignore stability". *Warning:*stability in the game helps keep buildings smaller to reduce lag. When you cheat stability you can create larger buildings, but this means more lag because more instances of objects. Keep an eye on your instances with F2 if this is a concern for you. (Why this works: Stability ticks down HP over time. With high enough health it just takes such a long time to tick down(years) it doesn't matter.)
- Great for boats. There are often "lag" issues with the game that cause boats to take more damage than they're supposed to. Just set your boat to high health.
- All items placed with the hammer have their health changed. If you're using a mod that spawns things with the hammer such as ore please keep in mind the ore will likely have high health. Simply disable GOML in the configuration manager if you're trying to place normal health ore veins for example.
- Disabling the mod does not change the health of previously placed/repaired pieces. If you want to lower the health again you'll need to set the health value to low in GOML and repair the piece or activate a ward and everything in the ward radius will be set to that health.
Links
- Source code available at:
- Looking for a chill Valheim server?
- Join us on: Comfy Valheim Discord
- Looking for a great Valheim server to play on?
- Check out our community driven listing site at: valheimlist.org
Changelog
1.3.1
- Destroy Carts & Boats with the Hammer like regular build pieces
1.2.1
- Actually check the
enablePieceHealthDamageThreshold
config value for the WearNTear.ApplyDamage() patch.
1.2.0
- Added new optimization/configuration option
enablePieceHealthDamageThreshold
.- Pieces with health that exceed 100K will not execute
WearNTear.ApplyDamage()
meaning they will not take any piece damage. Subsequently, they will not send aWNTHealthChanged
message to the server. - This reduces the overall send and receive rates for every player on the server as they will no longer receive the message used only for syncing the visual condition of pieces across clients.
- Pieces with health that exceed 100K will not execute
1.0.1
- Added null-checks for Piece and Piece.ZNetView references in the ward-interaction method.
1.0.0
- Updated for Hearth & Home.
CHANGELOG
Changelog
1.10.0
- Fixed for the
v0.219.14
patch.
1.9.0
- Updated for the
v0.218.15
Ashlands patch.
1.8.1
- Fixed a bug where damage was not being applied correctly to non-over-healthed Pieces.
1.8.0
- Fixed for the
v0.218.9
PTB patch. - Added new config option
Behaviour.repairPiecesOnWardActivation
(default:true
) for use withPrivateAreaPatch
. - Modified the
Player.RemovePiece()
transpiler patch to check if the Piece has aShip
orVagon
component.
1.7.0
- Updated for the
v0.217.38
patch. - Moved changelog into
CHANGELOG.md
. - Bumped up
<LangVersion>
to C# 10. - Removed custom config drawer as the functionality is now in
Configula
mod. - Modified Piece repair logic to work with vanilla
WearNTear
visual updates and claim ZDO ownerhsip on repair. - Minor code clean-up and refactoring.
1.6.0
- Updated for
v0.216.5
PTB patch.
1.5.0
- Modified TargetPieceHealth config setting to use FloatConfigEntry with custom text-to-float parsing/validation.
- Removed the ApplyDamageCount logging since it's no longer needed info.
- Minor code clean up.
1.4.1
- Repairs with negative damage should now take effect. Vanilla repair previously overwrote negative repair values.
1.4.0
- Moved all configuration code into new
PluginConfig
class. - Moved all Harmony-patching code into their own patch classes.
- Increased the default
PieceHealth
value to1E+17
. - Added
manifest.json
and updated thisREADME.md
. - Modified the project file to automatically create a versioned Thunderstore package.
1.3.1
- Destroy carts & boats with the Hammer like regular build pieces.
1.2.1
- Actually check the
enablePieceHealthDamageThreshold
config value for the WearNTear.ApplyDamage() patch.
1.2.0
- Added new optimization/configuration option
enablePieceHealthDamageThreshold
.- Pieces with health that exceed 100K will not execute
WearNTear.ApplyDamage()
meaning they will not take any piece damage. Subsequently, they will not send aWNTHealthChanged
message to the server. - This reduces the overall send and receive rates for every player on the server as they will no longer receive the message used only for syncing the visual condition of pieces across clients.
- Pieces with health that exceed 100K will not execute
1.0.1
- Added null-checks for Piece and Piece.ZNetView references in the ward-interaction method.
1.0.0
- Updated for Hearth & Home.