dfhack/docs/plugins/autofarm.rst

38 lines
1.2 KiB
ReStructuredText

autofarm
========
2022-07-20 00:11:02 -06:00
Tags:
:dfhack-keybind:`autofarm`
2022-07-22 01:05:53 -06:00
:index:`Automatically manage farm crop selection.
<autofarm; Automatically manage farm crop selection.>` This plugin periodically
scans your plant stocks and assigns crops to your farm plots based on which
plant stocks are low (as long as you have the appropriate seeds). The target
threshold for each crop type is configurable.
Usage:
2022-07-18 14:49:51 -06:00
- ``enable autofarm``
Enable the plugin and start managing crop assignment.
2022-07-18 17:20:43 -06:00
- ``autofarm runonce``
2022-07-18 14:49:51 -06:00
Updates all farm plots once, without enabling the plugin.
2022-07-18 17:20:43 -06:00
- ``autofarm status``
2022-07-18 14:49:51 -06:00
Prints status information, including any defined thresholds.
2022-07-18 17:20:43 -06:00
- ``autofarm default <number>``
2022-07-18 14:49:51 -06:00
Sets the default threshold.
2022-07-18 17:20:43 -06:00
- ``autofarm threshold <number> <type> [<type> ...]``
2022-07-18 14:49:51 -06:00
Sets thresholds of individual plant types.
You can find the identifiers for the crop types in your world by running the
following command::
lua "for _,plant in ipairs(df.global.world.raws.plants.all) do if plant.flags.SEED then print(plant.id) end end"
2022-07-20 00:11:02 -06:00
Examples
--------
2022-07-18 14:49:51 -06:00
- ``autofarm default 30``
Set the default threshold to 30.
- ``autofarm threshold 150 MUSHROOM_HELMET_PLUMP GRASS_TAIL_PIG``
Set the threshold for Plump Helmets and Pig Tails to 150