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.
Unweave
Undo for building. One key takes back the last piece you placed, with the hammer's own refund and rules. Client-only.
By FlyingHose
| Date uploaded | 2 hours ago |
| Version | 1.0.0 |
| Download link | FlyingHose-Unweave-1.0.0.zip |
| Downloads | 10 |
| Dependency string | FlyingHose-Unweave-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.2360README
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.
CHANGELOG
1.0.0
- 1.0 with the rest of the suite. No change to what the key does.
- Every claim in the README now has an in-game check, including the stamina and tool wear of one removal, public and private chests with items in them, a piece whose workbench is gone, the no-cost cheat, the game's menu, and the history clearing with a new session.
- The two-player test covers a piece the host has taken over: the removal goes through the owner, as with the hammer.
0.1.0
- First release. Undo for building.
- With a building tool in hand, Y removes the last piece you placed in this session. Each press goes one further back, through the last 20 placements (
History.Size). - The removal is the hammer's own: the same refund, the same ward, workbench, and container checks, the game's messages when it refuses, and the stamina and tool wear of one removal.
- With the Blueprints mod installed, a placed blueprint is undone in one press.
- Only pieces you placed this session in this world. Pieces that are gone are skipped. Pieces further than 30 meters (
Undo.MaxDistance) are left alone until you walk back. - The history is not saved and is cleared on logout and world change.
- Client-only: no version check, no network messages of its own.