mirror of
https://codeberg.org/tenplus1/farming.git
synced 2025-06-30 15:20:42 +02:00
add mt5.9x new farming.can_grow default function and check, deprecate but still run growth_check function
This commit is contained in:
2
api.txt
2
api.txt
@ -50,7 +50,7 @@ Note: Any crops registered with the above function will use the new growing rout
|
||||
|
||||
If a mod registers nodes to be used as crops using the {growing=1} group then an additional function can be used for custom growth checks instead of the standard 'are we above wet soil'.
|
||||
|
||||
growth_check = function(pos, [node_name])
|
||||
growth_check = function(pos, [node_name]) [DEPRECATED for above can_grow function]
|
||||
-- check surrounding for jungle tree
|
||||
if minetest.find_node_near(pos, 1, {"default:jungletree"}) then
|
||||
return true -- place next growth stage
|
||||
|
Reference in New Issue
Block a user