mirror of
https://github.com/luanti-org/minetest_game.git
synced 2025-07-22 15:15:03 -04:00
Added can_grow function to plant definition (#3131)
This commit is contained in:
parent
f03c992864
commit
061f4e76dd
2 changed files with 9 additions and 3 deletions
|
@ -382,6 +382,8 @@ The farming API allows you to easily register plants and hoes.
|
|||
-- ^ Always provide a plant texture for each step, format: modname_plantname_i.png (i = stepnumber)
|
||||
minlight = 13, -- Minimum light to grow
|
||||
maxlight = default.LIGHT_MAX -- Maximum light to grow
|
||||
can_grow = function(pos) -- Сalled every growth tick to check if the plant can grow, returns bool
|
||||
-- (optional, checks for wet soil by default)
|
||||
}
|
||||
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue