MassReplant
Replants a crop with your seeds (or seeds from nearby chests with CraftFromContainers) right after you pick it, including mass-picks. Hold Left Alt to skip.MassReplant
Picks a crop, plants it again. Every time you pick a fully grown crop, MassReplant plants the same crop on the same spot using seeds from your inventory. It works for single picks and for mass-picks, so harvesting a whole field leaves you with a whole field of saplings.
Features
- Replants right after you pick a crop (carrots, turnips, onions, barley, flax and every other crop you can plant with the Cultivator).
- Replants on the exact same spot, so grid layouts stay intact.
- Spends one seed per crop. No seeds, no replant (it waits a few seconds first, because the crop you just picked drops its own seeds).
- Only replants on cultivated ground, so wild crops are left alone.
- Respects wards: it won't plant where you couldn't build.
- Only acts for your own picks, so it is safe in multiplayer.
- Hold Left Alt (configurable) while picking to harvest without replanting.
Requirements (mandatory)
- Valheim 1.0
- BepInEx for Valheim: BepInExPack Valheim by denikson (maintained by Azumatt, Vapok and Margmas), on Nexus or Thunderstore. Use this Valheim build, not the generic BepInEx.
That is all MassReplant needs. It works on its own: it hooks the game's normal "pick" action.
Better with (optional)
These mods are not required, but together they make farming much nicer:
- MassFarming by xeio: mass-plant and mass-pick whole areas at once. By default you mass-pick with Shift+E (its
MassActionHotkey), and MassReplant then replants every crop you picked. - Venture Farm Grid by Venture: a placement grid for neat, evenly spaced fields.
- Craft From Containers by aedenthorn: when installed, MassReplant also takes seeds from nearby chests, using that mod's range and rules. Both mods use Left Alt as their "off" key by default, so holding it turns both off.
Looking for a hotkey-based replanter instead? See CropReplant. It is a different tool: it replants with the Cultivator and a key. MassReplant works automatically on every pick.
Installation
- Install BepInExPack Valheim (Nexus or Thunderstore).
- Put
MassReplant.dllinValheim/BepInEx/plugins.
(With a mod manager, just install the package and BepInEx comes with it.)
Configuration
A file named MassReplant.cfg appears in BepInEx/config after the first launch.
| Setting | Default | What it does |
|---|---|---|
| Enabled | true | Turns replanting on or off. |
| SkipKey | LeftAlt | Hold while picking to skip replanting. |
| ReplantDelay | 0.35 | Seconds to wait after a pick before replanting. |
| WaitForSeeds | 4 | Seconds to keep trying if you have no seeds yet. |
| Debug | false | Log every replant to the BepInEx log. |
Multiplayer
MassReplant runs only on the player who picks, using the normal building rules, so the host and other players need nothing. Planted crops are ordinary player-placed plants.
Compatibility and known limits
- Built and tested for Valheim 1.0 (tested as a client in a hosted game).
- Replants only crops that the Cultivator can plant. Bushes, mushrooms and wild plants are untouched.
- A crop that is picked while its spot is no longer cultivated is not replanted.
Source code and licence
MIT licence, see LICENSE. The source is a single file, Plugin.cs.
Credits
Thanks to xeio (MassFarming), Venture (Venture Farm Grid) and aedenthorn (Craft From Containers) for the mods this one is designed around, and to the BepInEx team and the BepInExPack Valheim maintainers (Nexus, Thunderstore).
