mirror of
https://github.com/mt-mods/plantlife_modpack.git
synced 2024-11-05 09:50:27 +01:00
make apple blossoms only grow on trees within 20m of water by default
This commit is contained in:
parent
5ca862e153
commit
7b9aac91b2
|
@ -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
|
||||
})
|
||||
|
||||
|
|
|
@ -1,6 +1,6 @@
|
|||
-- Set on which distance from water can the tree still grow.
|
||||
-- Grows anywhere if set to -1.
|
||||
DISTANCE_FROM_WATER = -1
|
||||
DISTANCE_FROM_WATER = 20
|
||||
|
||||
-- Minimum light level needed to grow. Default is 8, which means daylight.
|
||||
MINIMUM_GROWTH_LIGHT = 8
|
||||
|
|
Loading…
Reference in New Issue
Block a user