KydlDev-ChestSnapping icon

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 ExtraPrefabs config entry or the chestsnap_add console command (chestsnap_remove takes it out again, chestsnap_list shows candidates). ExcludedPrefabs opts prefabs out, and AutoDetectContainers can give every buildable container snap points automatically.
  • Adjustable snap points: per-prefab shift, grow and single-point offsets, saved in the PrefabAdjustments config entry. Console commands: chestsnap_shift, chestsnap_grow, chestsnap_point, chestsnap_reset, chestsnap_info.
  • chestsnap_show draws 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.