forked from minetest/minetest_game
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:
@ -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
|
||||
|
||||
|
||||
|
Reference in New Issue
Block a user