|
1 | 1 | autofarm |
2 | 2 | ======== |
3 | 3 |
|
4 | | -Automatically handles crop selection in farm plots based on current plant |
5 | | -stocks, and selects crops for planting if current stock is below a threshold. |
6 | | -Selected crops are dispatched on all farmplots. (Note that this plugin replaces |
7 | | -an older Ruby script of the same name.) |
8 | | - |
9 | | -Use the `enable` or `disable <disable>` commands to change whether this plugin is |
10 | | -enabled. |
| 4 | +Automatically manage farm crop selection. This plugin periodically scans your |
| 5 | +plant stocks and assigns crops to your farm plots based on which plant stocks |
| 6 | +are low (as long as you have the appropriate seeds). The target threshold for |
| 7 | +each crop type is configurable. |
11 | 8 |
|
12 | 9 | Usage: |
13 | 10 |
|
14 | | -* ``autofarm runonce``: |
15 | | - Updates all farm plots once, without enabling the plugin |
16 | | -* ``autofarm status``: |
17 | | - Prints status information, including any applied limits |
18 | | -* ``autofarm default 30``: |
19 | | - Sets the default threshold |
20 | | -* ``autofarm threshold 150 helmet_plump tail_pig``: |
21 | | - Sets thresholds of individual plants |
| 11 | +- ``enable autofarm`` |
| 12 | + Enable the plugin and start managing crop assignment. |
| 13 | +* ``autofarm runonce`` |
| 14 | + Updates all farm plots once, without enabling the plugin. |
| 15 | +* ``autofarm status`` |
| 16 | + Prints status information, including any defined thresholds. |
| 17 | +* ``autofarm default <number>`` |
| 18 | + Sets the default threshold. |
| 19 | +* ``autofarm threshold <number> <type> [<type> ...]`` |
| 20 | + Sets thresholds of individual plant types. |
| 21 | + |
| 22 | +You can find the identifiers for the crop types in your world by running the |
| 23 | +following command:: |
| 24 | + |
| 25 | + lua "for _,plant in ipairs(df.global.world.raws.plants.all) do if plant.flags.SEED then print(plant.id) end end" |
| 26 | + |
| 27 | +Examples: |
| 28 | + |
| 29 | +- ``autofarm default 30`` |
| 30 | + Set the default threshold to 30. |
| 31 | +- ``autofarm threshold 150 MUSHROOM_HELMET_PLUMP GRASS_TAIL_PIG`` |
| 32 | + Set the threshold for Plump Helmets and Pig Tails to 150 |
0 commit comments