forked from mtcontrib/plantlife_modpack
make apple blossoms only grow on trees within 20m of water by default
This commit is contained in:
@ -41,7 +41,9 @@ minetest.register_abm({
|
||||
chance = BLOSSOM_CHANCE,
|
||||
|
||||
action = function(pos, node, active_object_count, active_object_count_wider)
|
||||
nature:grow_node(pos, BLOSSOM_NODE)
|
||||
if nature:is_near_water(pos) then
|
||||
nature:grow_node(pos, BLOSSOM_NODE)
|
||||
end
|
||||
end
|
||||
})
|
||||
|
||||
|
Reference in New Issue
Block a user