Please disclose if any significant portion of your mod was created using AI tools by adding the 'AI Generated' category. Failing to do so may result in the mod being removed from Thunderstore.
TombstoneLock
The Valheim mod TombstoneLock automatically locks your tombstones so only the owner can loot them. Friends can request access, which the owner may approve. Tombstones stay locked for 10 in-game days, giving you plenty of time to recover your gear.
| Date uploaded | 2 days ago |
| Version | 1.0.0 |
| Download link | IronLabs-TombstoneLock-1.0.0.zip |
| Downloads | 14 |
| Dependency string | IronLabs-TombstoneLock-1.0.0 |
This mod requires the following mods to function
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.2333README
TombstoneLock - Valheim Mod
The Valheim mod TombstoneLock automatically locks Valheim tombstones so only their owner can loot them. In some cases maybe you would like a friend to loot your tombstone for you, in this case, he can request access to your tomb and you can decide to accept or not. The tombstone remains locked for 10 In-game days so that you have enough time to retrieve your items.
Features
- Newly created tombstones are automatically locked to their owner.
- Only the owner can open a locked tombstone.
- Other players trigger an automatic unlock request (only if the owner is online).
- The owner is notified and grants access with the
/acceptchat command. - Requests expire after 20 seconds; both the owner and the requesting player are notified when a request expires.
- Only one outstanding request at a time.
- A player can send another unlock request only after 2 minutes.
- A tombstone locked for 10 in-game days or more unlocks automatically — anyone can then loot it, no request needed.
Note: enforcement is client-side. All connected players should run the mod (see AzuAntiCheat below) for it to be effective.
How it works
Tombstone owner
When another player attempts to access your tombstone, a message appears in your chat telling you who is asking. To grant access, type in the chat:
/accept
You have 20 seconds to respond. After that the request expires, both of you are notified in the chat, and the player must ask again. Accepting unlocks that tombstone permanently for everyone.
Other players
Interact with a locked tombstone as usual.
- If the owner is online, an unlock request is sent automatically.
- If the owner types
/accept, the tombstone is unlocked and can be looted by anyone. - If the owner is offline or doesn't respond within 20 seconds, the tombstone stays locked.
- Any tombstone locked for 10 in-game days or more can be looted freely, without asking.
Installation
Install BepInEx, then copy TombstoneLock.dll into:
BepInEx/plugins/
This mod is client-side only — there is no point installing it on the (dedicated) server; it does nothing there. Install it only on the players' game clients.
The lock state is stored in the tombstone's network object and the unlock requests travel as routed RPCs — both are relayed by a vanilla server without it needing the mod, which is why the server side requires no installation.
Important: every player must install the mod. Because enforcement is client-side, a player without the mod can open any tombstone normally.
To make sure everyone runs it, use a server-side mod enforcer such as AzuAntiCheat (that one does need to be on the server).
For developers
You can download the source code from github:
https://github.com/end3rbyte/TombstoneLock
Environment variables used
BepInExPath=C:\Program Files (x86)\Steam\steamapps\common\ValheimM\BepInEx
CorlibPath=C:\Program Files (x86)\Steam\steamapps\common\ValheimM\valheim_Data\Managed
ValheimGamePath=C:\Program Files (x86)\Steam\steamapps\common\ValheimM
Debugging
- useful link to setting your debug environment
- pdb2mdb executable is needed only to debug and can be commented out
- a .pdb from assembly_valheim.dll can be generated with ILSpy
- DirectPlay mod is pretty useful to avoid select a character and world on every debug session
Thanks
- AzuAntiCheat for dedicated server
- ServerCharacter for dedicated server
- DirectPlay for debugging
- Valheim wonderful game ❤️
Contact
- https://steamcommunity.com/profiles/76561198271297641/
- http://discordapp.com/users/1227584616634781808
CHANGELOG
v1.0.0
- Initial Version
v1.0.4
- Localized in all languages (translated by Codex)
v1.0.5
- bug fix when the playerId is negative
- added a more explicit message when the player cannot request access for the moment (the 2min period)