FixItFelix-ConfigurePlants icon

ConfigurePlants

Simple mod to configure simple values of Plants, like grow time and grow radius.

Last updated 6 months ago
Total downloads 2292
Total rating 1 
Categories Mods Libraries Tools Server-side Client-side Utility Mistlands Update
Dependency string FixItFelix-ConfigurePlants-1.1.3
Dependants 4 other packages depend on this package

This mod requires the following mods to function

ValheimModding-Jotunn-2.14.4 icon
ValheimModding-Jotunn

Jötunn (/ˈjɔːtʊn/, 'giant'), the Valheim Library was created with the goal of making the lives of mod developers easier. It enables you to create mods for Valheim using an abstracted API so you can focus on the actual content creation.

Preferred version: 2.14.4
denikson-BepInExPack_Valheim-5.4.2200 icon
denikson-BepInExPack_Valheim

BepInEx pack for Valheim. Preconfigured and includes unstripped Unity DLLs.

Preferred version: 5.4.2200

README

Configure Plants

Ever wanted to change the most simple values on plants in Valheim? This is the mod you can easily use!

Features

This mod does not use any .cfg file to configure it. Instead it does provide configuration via YAML files:

  1. Ability to simply write out the currently in-game loaded configuration of all Plants (following the Plant Valheim type).
  2. Ability to read 1 or many files that contain configuration values in the same model that can be written, it will then change the in-game values of the plants while loading into the world.

YAML file contents are ServerSynced.

Supported config values for plants

The implementation currently provides config changes for these values:

field name description type example
name the in-game name, usually using localization tokens string $prop_pine_sapling
growTime values of seconds this plants need for growing float 3000
growRadius meters of space a plants requires around it to be able to grow float 2
minScale minimum scale for grown plant float 1.5
maxScale maximum scale for grown plant float 2.5
needCultivatedGround plant can only grow be planted on previously cultivated ground bool false
destroyIfCantGrow plant will be destroyed if any condition not met during growing bool true

Writing plant config defaults

To write the defaults from how they were loaded into the game you can use the console command:

configure_plants_print_defaults

The file containing all the defaults is then written to a simple YAML file inside your BepInEx config folder:

.../BepInEx/config/FixItFelix.ConfigurePlants.defaults.yaml

Example file contents

This is a shorted example for what you get from vanilla Valheim:

PineTree_Sapling:
  name: $prop_pine_sapling
  growTime: 3000
  growRadius: 2
  minScale: 1.5
  maxScale: 2.5
  needCultivatedGround: false
  destroyIfCantGrow: true
FirTree_Sapling:
  name: $prop_fir_sapling
  growTime: 3000
  growRadius: 2
  minScale: 1
  maxScale: 2.5
  needCultivatedGround: false
  destroyIfCantGrow: true
sapling_onion:
  name: $piece_sapling_onion
  growTime: 4000
  growRadius: 0.5
  minScale: 0.9
  maxScale: 1.1
  needCultivatedGround: true
  destroyIfCantGrow: true

You can use the written data to simply create a custom config file by copying and changing file name accordingly.

How to use Valheim console

On how to use the Valheim console, there are many articles that help you enabling the console in details. See for example the Valheim wiki. To make it short: add the parameter -console to calling your valheim.exe file -> valheim.exe -console (this can be done in Steam, too)

Reading your custom config

The mod can read any YAML file that follows this naming pattern: FixItFelix.ConfigurePlants.custom.*.yaml

The schema of the file needs to follow the schema of the output, see above.

Miscellaneous

Attributions
Contact