Store registered plant on namespace
Handy for when modders want to use these definitions to extend or add to the mod
This commit is contained in:
parent
6fdfd2554c
commit
78311a27a1
2 changed files with 7 additions and 0 deletions
|
@ -183,6 +183,9 @@ The farming API allows you to easily register plants and hoes.
|
|||
`farming.register_plant(name, Plant definition)`
|
||||
* Register a new growing plant, see [#Plant definition]
|
||||
|
||||
`farming.registered_plants[name] = definition`
|
||||
* Table of registered plants, indexed by plant name
|
||||
|
||||
### Hoe Definition
|
||||
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue