From 8348a745f8cb69e2e007d97c0523d46a2b07704f Mon Sep 17 00:00:00 2001 From: Rogier Date: Thu, 2 Apr 2015 12:18:09 +0200 Subject: [PATCH] Use different chances for leaves->blossom and blossom->leaves conversions --- nature_classic/blossom.lua | 4 ++-- nature_classic/init.lua | 3 ++- 2 files changed, 4 insertions(+), 3 deletions(-) diff --git a/nature_classic/blossom.lua b/nature_classic/blossom.lua index 4716f0d..a4447fd 100644 --- a/nature_classic/blossom.lua +++ b/nature_classic/blossom.lua @@ -33,7 +33,7 @@ minetest.register_craft({ minetest.register_abm({ nodenames = { nature.blossom_leaves }, interval = nature.blossom_delay, - chance = nature.blossom_chance, + chance = nature.leaves_blossom_chance, action = function(pos, node, active_object_count, active_object_count_wider) nature.enqueue_node(pos, node, nature.blossom_node) @@ -44,7 +44,7 @@ minetest.register_abm({ minetest.register_abm({ nodenames = { nature.blossom_node }, interval = nature.blossom_delay, - chance = nature.blossom_chance, + chance = nature.blossom_leaves_chance, action = function(pos, node, active_object_count, active_object_count_wider) nature.enqueue_node(pos, node, nature.blossom_leaves) diff --git a/nature_classic/init.lua b/nature_classic/init.lua index bf63e12..93c1b38 100644 --- a/nature_classic/init.lua +++ b/nature_classic/init.lua @@ -19,7 +19,8 @@ if minetest.get_modpath("moretrees") then minetest.register_alias("nature:blossom", "default:leaves") end -nature.blossom_chance = 15 +nature.leaves_blossom_chance = 15 +nature.blossom_leaves_chance = 5 nature.blossom_delay = 3600 nature.apple_chance = 10 nature.apple_spread = 2