A game-agnostic Luanti mod and API that allows growing flowers on growing tables
Find a file
2024-12-28 01:55:22 +01:00
api implement configuration options 2024-12-28 01:21:19 +01:00
locale implement configuration options 2024-12-28 01:21:19 +01:00
registry remove redundant seeds registration 2024-12-25 05:13:35 +01:00
system implement configuration options 2024-12-28 01:21:19 +01:00
textures implement plant tables (incomplete with this commit) 2024-12-15 01:55:34 +01:00
init.lua implement configurability of the built-in registry 2024-12-28 01:55:22 +01:00
LICENSE.txt relicense to the MIT License 2023-07-16 15:33:34 +02:00
mod.conf do a full reset and completely start over 2024-12-11 20:57:47 +01:00
README.md implement configurability of the built-in registry 2024-12-28 01:55:22 +01:00
settingtypes.txt implement configurability of the built-in registry 2024-12-28 01:55:22 +01:00

WIP

Configuration

You can set certain option of the mod using either a local configuration file or the global configuration file that was used to start the server.

The local configuration file needs to be placed in the world directory: ./worlds/worldname/_afgrow.lua. Local configuration options override global ones. If neither is set, the default values (shown below) are used.

afgrow_process_builtin_registry  = true
afgrow_load_builtin_game_support = true
afgrow_load_builtin_mod_support  = true

afgrow_table_action_interval = 60
afgrow_table_liquid_usage    = 1.5

afgrow_table_crafting_yield = 3
afgrow_lamp_crafting_yield  = 3
afgrow_seeds_crafting_yield = 8
  • afgrow_process_builtin_registry If you want to just use the API by yourself and to not want the built-in support files from the registry to be processed, you can set this option to false. This only loads the API but does not register anything.
  • afgrow_load_builtin_..._support Load built-in mod/game support when processing the built-in registry. This can be used to specifically do not load game or mod support. Not loading mods affects all mods, not only the game mods.
  • afgrow_table_action_interval Each action a plant table performs (i.e. checking water level and filling up the internal water tank, or growing a flower) is based on a certain interval in seconds. This parameter sets the value. The value should be larger than or equal to 1.
  • afgrow_table_liquid_usage The plant table uses a certain amount of water for each flower. The value 0 never empties the water tank. It is a percent value, so 100 should be the maximum set here.
  • afgrow_..._crafting_yield This defines the individual items crafting yields. For seeds, values below 4 or equal to 4 make no sense, because players would loose flowers or dont gain any.

When running a singleplayer game or a server from within the client, you can also set the options in the clients advanced configuration. There, the upper and lower limits are automatically applied.