1
0
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:
tenplus1
2024-06-24 07:41:40 +01:00
parent 8bd129309c
commit ac4c4f48d3
2 changed files with 20 additions and 10 deletions

View File

@ -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