Make apple regrowing frequency configurable independently of blossom

Conflicts:
	nature_classic/init.lua
This commit is contained in:
Rogier 2015-11-03 12:32:59 +01:00
parent 2ad8c73f66
commit acbc58d8ee
2 changed files with 2 additions and 1 deletions

View File

@ -64,7 +64,7 @@ minetest.register_abm({
-- spawn apples with 10% chance, but with 10 times higher frequency -- spawn apples with 10% chance, but with 10 times higher frequency
minetest.register_abm({ minetest.register_abm({
nodenames = { nature.blossom_node }, nodenames = { nature.blossom_node },
interval = nature.blossom_delay / 10, interval = nature.apple_delay / 10,
chance = nature.apple_chance, chance = nature.apple_chance,
action = function(pos, node, active_object_count, active_object_count_wider) action = function(pos, node, active_object_count, active_object_count_wider)

View File

@ -23,6 +23,7 @@ end
nature.leaves_blossom_chance = 15 nature.leaves_blossom_chance = 15
nature.blossom_leaves_chance = 5 nature.blossom_leaves_chance = 5
nature.blossom_delay = 3600 nature.blossom_delay = 3600
nature.apple_delay = 3600
nature.apple_chance = 10 nature.apple_chance = 10
nature.apple_spread = 2 nature.apple_spread = 2