You are viewing a potentially older version of this package. View all versions.
NoPetRides-CropUtils-1.2.1 icon

CropUtils

My second mod. It has two main purposes - 1) Pick crops in an area with one interaction. 2) Plant many crops at once with pattern options that respect healthy plant distancing. Uses BepInEx.

Date uploaded 2 years ago
Version 1.2.1
Download link NoPetRides-CropUtils-1.2.1.zip
Downloads 6170
Dependency string NoPetRides-CropUtils-1.2.1

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

CropUtils v 1.2.1

This is my second Mod. It is inspired by MassFarming by Xeio, but introduces additional functionality and doesn't use a grid pattern. Check out Xeio's mod here: https://github.com/Xeio/MassFarming

This mod has two main purposes:

  1. Pick crops (and other interactables like beehives, rocks, branches, herbs and more) in an area with one interaction.
  2. Plant many crops at once with pattern options that respect healthy plant distancing. This uses hex grid circle packing to maximize crop placement efficiency instead of a less space efficient and more limiting square grid.

Planting will skip any invalid plant locations, so you can use this to fill in any gaps in your fields.

Usable entirely on client, even in multiplayer - though if in MP, you should probably get permission from the admin to use. Dedicated servers do not need this installed.

Dependant on BepInEx (https://valheim.thunderstore.io/package/denikson/BepInExPack_Valheim/) and my own mod library (https://github.com/nopetrides/modding/tree/main/ValheimMods/NPR_Valheim_ModUtils) which contains a lightweight version of Jotunn inspired functionality.

See config for all configurables, and change at your leasuire.

Default keybinds:

  • Pickup: Hold left ALT to pickup in an area
  • Planting Line: Hold left ALT to plant in a line, and optionally hold Z to lock the line in place.
  • Planting Hex: Press and hold Z first then left ALT creates a circle packed pattern for mass planting
  • Change range: Use the ]} key to increase the size and range of the utils, and [{ to decrease the range of the utils
  • Change spacing: If using custom spacing (disabled by default) use the - and + (techically the = key) to increase or decrease the manual space between plants.

Configurables:

  • Keybinds for primary & secondary tool function
  • Pickup range display, range increase & decrease keybinds
  • Discount for stamina and durability use when multiplanting
  • Show / hide range helper
  • Support for gamepad keybinds, but admittedly defaults are probably not good. Let me know if you find some good controller binds.
  • Support for additional mods that plant non-standard Valheim crops, such as PlantEverything. (https://valheim.thunderstore.io/package/Advize/PlantEverything/1.12.0/) See 1.2.0 changelog for more info.

Limitations:

  • Hex grid does not align with rotation like line tool does. I'd like to fix that in future.
  • In order for hex grid to not cause lag when building, it has to be locked in place while it builds. The line tool does not.
  • Hex grid will cause a bunch of lag when planting very large grids.
  • Does not stop the very first crop from being planted even if it would be unhealthy. I have tried to at least tweak the display so you would know not to plant it there.
  • Mod compatability is not guaranteed, but this mod offers a generic solution should should work for most use cases.

Changelog:

1.2.1

Readme updates for 1.2.0

1.2.0

Mod compatibilty settings. The mod should now support other crop and planting mods that utilize the cultivator to plant other crops, such as PlantEverything. To use this mod with other mods, enable "Mod Compatability Mode" (IgnorePlantTypeRestriction) in the config file (run the game at least once with the mod installed to generate the config.) to plant any kind of plantable you have access too.

Mod compatability uses custom spacing to allow you to set the spacing to use for various custom mod growables. Optionally, you can also enable "Custom Spacing Only" if you have mods that override the default crop growth spacing or that disable it completely.

It's important to note that the custom spacing is only for the cultivator tool's placement, and will not influence the growth of the plant. Whatever the plant's growth radius is will remain and is unaffected by this mod. If for some aethestic reason you wish to have custom spacing, simply ensure that the custom spacing is at least the minimum required for the plant.

1.1.0

Mistlands updates. Small pickup radius tweak to match debug sphere.

1.0.0

Release