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

PressUToRelocate

Press U to grab any interactable placed piece, preview it as a ghost, and left-click to relocate. Shows a dashed trail with ground rings from the original spot to the preview.

Date uploaded a week ago
Version 1.0.0
Download link ModdedWolf-PressUToRelocate-1.0.0.zip
Downloads 5
Dependency string ModdedWolf-PressUToRelocate-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

Press U To Relocate

A client-side Valheim mod that lets you move interactable placed pieces — chests, workbenches, torches, beds, furniture, and more — without picking it up and rebuilding.

Look at a piece, press U to grab it, aim where you want it (the ghost snaps to the ground like building), scroll to rotate, then left-click to confirm. Right-click or U again cancels.

While moving, the mod draws:

  • A translucent ghost at the target location
  • A circle on the ground at the original spot
  • A circle on the ground at the ghost
  • A dashed line connecting the two

Requirements

  • Valheim (PC)
  • r2modman with a profile that has BepInExPack Valheim installed
  • For building from source: the .NET SDK (8.0+)

Install with r2modman

  1. Install r2modman, choose Valheim, and create (or select) a profile.
  2. Install BepInExPack Valheim in that profile.
  3. Launch once through r2modman so the profile's BepInEx folders exist.
  4. Build the package (dotnet build -c Release -t:Package) and import the zip via Settings → Import local mod, or copy PressUToRelocate.dll into BepInEx\plugins\PressUToRelocate\.

Build from source

dotnet build -c Release

Override paths if needed:

dotnet build -c Release -p:VALHEIM_INSTALL="C:\Path\To\Valheim" -p:R2_PROFILE="MyProfile"

Package for r2modman import:

dotnet build -c Release -t:Package

Usage

  1. Look at any placed piece you can interact with (chest, bench, torch, bed, etc.) — you'll see [U] Relocate in the hover text.
  2. Press U to start relocating it.
  3. Aim where you want it — the ghost follows your crosshair and snaps to valid surfaces.
  4. Scroll the mouse wheel to rotate.
  5. Left-click to confirm the new location.
  6. Right-click or U to cancel.

The ghost turns green when placement is valid and red when blocked (too far, warded area, etc.).

Configuration

Config file: %APPDATA%\r2modmanPlus-local\Valheim\profiles\<ProfileName>\BepInEx\config\dev.modded.pressutorelocate.cfg

Section Key Default Description
General Enabled true Master on/off.
General GrabKey U Key to grab / cancel relocate (U avoids Forsaken Power on F).
General MaxGrabDistance 8 Max distance to grab a hovered piece (meters).
General MaxPlaceDistance 12 Max distance from player to place the ghost (meters).
General RotationSnapDegrees 22.5 Degrees per scroll-wheel tick while relocating.
General RespectWards true Block placement inside wards you cannot build in.
General RequireBuildAccess true Require build permission at the target spot.
Appearance GhostColor green (0.5 alpha) Valid ghost tint.
Appearance BlockedColor red (0.5 alpha) Invalid ghost tint.
Appearance TrailColor white (0.85 alpha) Dashed connector color.
Appearance RingColor white (0.9 alpha) Ground ring color.
Appearance RingRadius 0.6 Ground ring radius (meters).
Appearance DashLength 0.35 Length of each dash segment (meters).
Appearance LineWidth 0.06 Trail and ring line width (meters).

Multiplayer

When you confirm a relocate, the mod claims ownership of the piece, updates its networked position/rotation (ZDO + physics), and broadcasts a sync RPC so other players see the piece move immediately instead of only colliding with it at the new spot.

Both players need this mod installed for the relocate sync to work correctly in multiplayer.

Works best when you have permission to modify the piece (same as building in that area). Ground-only pieces (chests, benches, etc.) snap to the floor and cannot be placed on walls.

Notes

  • v1 uses ground/surface snapping only (no snap-to-other-piece attachment points).
  • Rebuild from source after major Valheim updates if assemblies change.