13 lines
782 B
Lua
13 lines
782 B
Lua
---@diagnostic disable: codestyle-check
|
|
---https://github.com/sumneko/lua-language-server/wiki
|
|
|
|
---Minetest game farming mod
|
|
|
|
----Node definition. Used by `minetest.register_node`.
|
|
---@class NodeDefMtgFarming
|
|
---@field fertility string[]|nil Used in default farming mod, defines biome name list where plants can grow
|
|
---@field steps number How many steps the plant has to grow, until it can be harvested
|
|
---@field minlight number Minimum light to grow
|
|
---@field maxlight number Maximum light to grow
|
|
---@field on_timer fun(pos: Vector, elapsed: number): boolean default: nil, called by NodeTimers, see minetest.get_node_timer and NodeTimerRef. elapsed is the total time passed since the timer was started. return true to run the timer for another cycle with the same timeout value.
|