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.
ChestSnapping
Lets chests use Valheim's built-in snap system. Press Q/E while placing to pick one of 14 snap points. Works with modded chests, and the snap points can be adjusted in-game.
By KydlDev
CHANGELOG
Changelog
1.0.0
First release.
- Chests get 14 snap points that work with Valheim's built-in snap system: 4 bottom corners, 4 top corners and 6 face centers. Press Q / E while placing to cycle through them; the vanilla "Snapping: ..." message shows the active one.
- Built-in support for the wood chest, reinforced chest, private chest and blackmetal chest.
- Snap points are placed on the chest's real collider bounds, so chests snap flush against each other.
- Modded chests: add any prefab name with the
ExtraPrefabsconfig entry or thechestsnap_addconsole command (chestsnap_removetakes it out again,chestsnap_listshows candidates).ExcludedPrefabsopts prefabs out, andAutoDetectContainerscan give every buildable container snap points automatically. - Adjustable snap points: per-prefab
shift,growand single-point offsets, saved in thePrefabAdjustmentsconfig entry. Console commands:chestsnap_shift,chestsnap_grow,chestsnap_point,chestsnap_reset,chestsnap_info. chestsnap_showdraws a sphere on every snap point so you can see what an adjustment does.- Changes to the config or the console commands apply to chests that are already built right away, no restart needed.
- Client-side only: other players and servers do not need the mod.
- Config file:
BepInEx/config/com.kydldev.ChestSnapping.cfg.