FlyingHose-Unweave icon

Unweave

Undo for building. One key takes back the last piece you placed, with the hammer's own refund and rules. Client-only.

Last updated an hour ago
Total downloads 5
Total rating 0 
Categories Utility Building
Dependency string FlyingHose-Unweave-1.0.0
Dependants 1 other package depends on this package

This mod requires the following mods to function

denikson-BepInExPack_Valheim-5.4.2360 icon
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.2360

README

Unweave: undo for building

With a building tool in hand, press Y and the last piece you placed is taken back, with your materials, the same as removing it with the hammer.

Part of FlyingHose's Modpack. Needs only BepInEx.

A misplaced beam used to mean switching to remove, finding the right piece among twenty that look the same, and clicking it. Now it is one key. The Norns weave fate; this pulls one thread back out.

Using it

With the hammer (or any building tool) in hand, press Y. The last piece you placed is removed and you see Undid Wood beam. Press Y again and the one before it goes, and so on back through your last 20 placements. When there is nothing left you see Nothing to undo.

If you have the Blueprints mod, a whole blueprint you placed comes back off in one press, with Undid a blueprint, 12 pieces. Without Blueprints nothing about this changes.

It is the hammer's removal

Unweave removes a piece the way the hammer does, with the game's own code, so:

  • You get back exactly what the hammer would give you: the same items, in the same amounts, dropped where the piece was. Unweave adds nothing and keeps nothing.
  • Every rule the hammer follows still holds. Inside a ward that is not yours the ward flashes and nothing happens. A piece that needs a workbench needs one in range. A private chest with things in it stays; any other chest comes down and drops what it held, as it does with the hammer. You see the game's own message when it says no, and the piece stays in your history so you can try again.
  • It costs the stamina and tool wear of one hammer removal and plays the same swing and sound.

What it will and will not take back

  • Only pieces you placed yourself, in this play session, in this world. Nothing someone else built, nothing you built last week, nothing that was already in the world.
  • The piece has to be within 30 meters of you. Further than that the key tells you it is too far and does nothing, so it cannot be used to tear things down from across the map. Walk back and press it again.
  • A piece that is already gone, because it broke or someone removed it, is skipped without a word and the key moves on to the one before.
  • The history is not saved. It starts empty every time you log in, and changing worlds clears it.
  • A piece placed with the no-cost cheat is never recorded, because removing it would make materials out of nothing.
  • The key does nothing while you type in chat, with the console or the map open, in a menu, or without a building tool in hand.

There is no redo. To put a piece back, build it again.

Settings

Setting Default What it does
Keys.UndoKey Y Takes back the last piece you placed.
History.Size 20 How many placements the key can walk back through, 1 to 200. A blueprint counts as one.
Undo.MaxDistance 30 How near, in meters, a piece must be to be taken back, 5 to 100.
General.Enabled true Off applies no patches. Needs a restart.
General.DebugLogging false Write detailed lines to the BepInEx log.

All of these are yours alone.

It is client-only

Only the player who installs it needs it. It sends nothing of its own over the network, has no version check, and a player with it can join a server that does not have it. A removal reaches the server the same way a hammer removal does.

How it works

When the game places a piece for you, it marks you as its builder. Unweave notices that moment and writes down the piece's network id, nothing else. The key looks the newest id up, checks the distance, then runs the same checks and the same calls the game's hammer removal runs, in the same order. The game decides what is refunded.