You are viewing a potentially older version of this package. View all versions.
Moopfam-FarmGridRemake-1.1.2 icon

FarmGridRemake

FarmGridRemake updates the original FarmGrid concept for current Valheim versions. Allows for all plants planted with the cultivator to automatically be snapped and placed into a grid in which they will have enough space to grow.

Date uploaded 3 weeks ago
Version 1.1.2
Download link Moopfam-FarmGridRemake-1.1.2.zip
Downloads 287
Dependency string Moopfam-FarmGridRemake-1.1.2

This mod requires the following mods to function

denikson-BepInExPack_Valheim-5.4.2350 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.2350

README

FarmGridRemake

FarmGridRemake updates the original FarmGrid concept for current Valheim versions. Allows for all plants planted with the cultivator to automatically be snapped and placed into a grid in which they will have enough space to grow.

Features

  • Rotating a plant rotates the grids around the active snap point without dragging the plant around the anchor.
  • Any recognized cultivator plant can be used as the local snap anchor, including different plant types.
  • Optional custom grid size.
  • Hold a configurable key to temporarily disable snapping and grid lines.
  • Grid visuals and snapping are client-side.
  • Toggle for remove growth restrictions.
  • Ability to place multiple plants in a single location
  • Multiplayer unrestricted growth requires the host/server and clients to run the plugin.

Grid Size

Automatic spacing is used by default.

[Grid Size]
useCustomGridSize = false
customGridSize = 1.0

When useCustomGridSize = true, every recognized plant uses customGridSize instead of calculated growth spacing.

Grid Toggle

[Grid Toggle]
EnableGrid = true
DisableHoldGridKey = LeftAlt
SecondaryGridKey = LeftShift
holdToDisableGrid = true
  • EnableGrid = false disables snapping and grid lines completely.
  • DisableHoldGridKey is the key used for the temporary bypass.
  • holdToDisableGrid = true enables the temporary hold bypass.
  • The default hold-to-disable key is LeftAlt.
  • The default secondary-grid key is Left Shift. The green point is an immediate local neighbour of the selected plant anchor. Hold Shift to move to the red midpoint exactly halfway along that same local connection. Cardinal connections use a half-cell on local X or local Y; diagonal connections use a half-cell on both axes. customGridSize controls the full green spacing, so the red midpoint is always exactly half of that spacing. The active snap point stays fixed while rotating, and the paired point rotates around it.

Disabling the grid does not disable cultivator deconstruction or unrestricted growth.

Plant Without Restrictions

[Plant Growth]
removeGrowthRestrictions = true

removeGrowthRestrictions is the toggle for planting without normal Valheim plant restrictions. When enabled, FarmGridRemake bypasses the supported Plant checks, including:

  • biome/environment restrictions;
  • cultivated-ground requirements;
  • grow-space checks;
  • the main CanGrow restriction gate.

It also prevents supported planted objects from being destroyed solely because those growth checks fail.

This affects growth rules only. It does not make plants float in midair or bypass unrelated physical placement rules.

Plant-to-plant snapping and rotated grids

FarmGridRemake does not use a universal/world grid. It only snaps when a recognized plant is nearby. The nearest recognized plant becomes the local anchor, and FarmGrid offers only the eight immediate green neighbour positions around that plant. Holding Left Shift moves to the exact midpoint between that anchor and the selected green neighbour, so red works on local X, local Y, and diagonal connections. Newly placed plants can then become anchors for extending a row or layout plant-by-plant.

Automatic spacing is based on the plant currently being placed, while customGridSize overrides both green and red spacing. Green and red snapping rotate with the placement angle, and plants on modded physics layers or added by Plant Everything can still be used as local anchors.

Configuration

Generated config:

BepInEx/config/Moopfam.FarmGridRemake.cfg

[FarmGrid]
plantSpacing = 0.01
farmGridSections = 2
farmGridYOffset = 0.2
farmGridColor = 0, 1, 0, 0.35
secondaryGridColor = 1, 0, 0, 0.35
# 0 follows the plant placement rotation. 1-360 locks the grid to that world rotation.
farmGridFixedRotation = 0
plantObjectMasks = piece,piece_nonsolid,item
customPlants =

[Grid Size]
useCustomGridSize = false
customGridSize = 1.0

[Grid Toggle]
EnableGrid = true
DisableHoldGridKey = LeftAlt
SecondaryGridKey = LeftShift
holdToDisableGrid = true

[Plant Growth]
removeGrowthRestrictions = true

Single Player and Multiplayer

Single player

Install FarmGridRemake on the client. Unrestricted growth works locally when removeGrowthRestrictions = true.

Hosted multiplayer

For consistent unrestricted growth, install FarmGridRemake on the host and all clients.

Dedicated server

For consistent unrestricted growth, install FarmGridRemake on the dedicated server and all clients.

Grid snapping, grid lines, and the hold bypass are visual/client-side features. The server requirement applies to unrestricted growth.

Installation

Client

  1. Install BepInExPack for Valheim.
  2. Place FarmGridRemake.dll in Valheim/BepInEx/plugins/.
  3. Start Valheim.

Dedicated server

  1. Install BepInExPack on the server.
  2. Place FarmGridRemake.dll in the server's BepInEx/plugins/.
  3. Enable removeGrowthRestrictions in the server config if unrestricted growth is wanted.
  4. Install the plugin on connecting clients for consistent multiplayer growth behavior.

Credits / Important Note

I was unaware that Advize already had his own version of this type of planting/grid functionality when I made FarmGridRemake.

If you are looking for a maintained planting/grid solution, I recommend downloading Advize's Plant Easily instead:

https://www.nexusmods.com/valheim/mods/2350

Please support the original authors and their work.

Version

1.1.2

Changelog

1.1.2

  • Added a configurable hold key to temporarily disable FarmGrid snapping and grid lines, default LeftAlt. ([diffByDefault])
  • Added cross-plant grid linking so all recognized cultivator plants can connect to the same grid alignment.
  • Added a configurable secondary grid key, default LeftShift, that shows a red interleaved grid between the green grid positions.
  • Added toggle for remove growth restrictions.
  • Ability to place multiple plants in a single location remove growth restrictions ENABLED required. ([SpudNickHAP])

1.1.1

  • Added Plant Everything support.

1.1

  • Fixed package metadata.

1.0

  • Initial FarmGridRemake release for current Valheim versions.