# Hades Seeds API

You can register seeds and that's it. All seeds start with the groups
`seed=1`, `snappy=3`, `attached_node=1`.

Seeds do not grow on their own, you are supposed to implement that yourselves,
e.g. with ABMs.

## `hades_seeds.register_seed(name, def)`
Register a seed node.

* `name`: Full itemstring of seed node. MUST be of the form
         `<your_modname>:seed_<your_identifier>`,
          e.g. `hades_farming:seed_wheat`
* `def`: Definition table:
    * `description`: Same as for normal node def
    * `_tt_help`: Tooltip extension (for 'tt' mod)
    * `image`: Node texture, inventory and wield image
    * `surface_check`: Function that takes the node on which the seed is
                       placed as argument, must return true if seed is allowed
                       to be placed here and false otherwise
    * `extra_groups`: Optional table of groups to add to the default seed node groups
    * `grows_to`: (optional) Name of the node it grows to, if it’s a small plant/thing
      that is only 1 node big. This group is purely informative to be used like tools
      like fertilizer; it does **not** cause the seed to grow
    * `seasons`: (optional) Set `_hades_seasons`. List of seasons the seed
      will grow in (see `hades_season` mod for possible values)

`def` also optionally supports the following fields to override the default
behavior of the fields of the `core.register_node`:

* `place_param2`
* `tiles`
* `sounds`
* `drawtype`
* `node_box` (only if `drawtype=="nodebox`")
* `selection_box`
