mirror of
https://github.com/mt-mods/plantlife_modpack.git
synced 2024-12-27 02:50:19 +01:00
Use different chances for leaves->blossom and blossom->leaves conversions
This commit is contained in:
parent
bb41483ee9
commit
8348a745f8
@ -33,7 +33,7 @@ minetest.register_craft({
|
|||||||
minetest.register_abm({
|
minetest.register_abm({
|
||||||
nodenames = { nature.blossom_leaves },
|
nodenames = { nature.blossom_leaves },
|
||||||
interval = nature.blossom_delay,
|
interval = nature.blossom_delay,
|
||||||
chance = nature.blossom_chance,
|
chance = nature.leaves_blossom_chance,
|
||||||
|
|
||||||
action = function(pos, node, active_object_count, active_object_count_wider)
|
action = function(pos, node, active_object_count, active_object_count_wider)
|
||||||
nature.enqueue_node(pos, node, nature.blossom_node)
|
nature.enqueue_node(pos, node, nature.blossom_node)
|
||||||
@ -44,7 +44,7 @@ minetest.register_abm({
|
|||||||
minetest.register_abm({
|
minetest.register_abm({
|
||||||
nodenames = { nature.blossom_node },
|
nodenames = { nature.blossom_node },
|
||||||
interval = nature.blossom_delay,
|
interval = nature.blossom_delay,
|
||||||
chance = nature.blossom_chance,
|
chance = nature.blossom_leaves_chance,
|
||||||
|
|
||||||
action = function(pos, node, active_object_count, active_object_count_wider)
|
action = function(pos, node, active_object_count, active_object_count_wider)
|
||||||
nature.enqueue_node(pos, node, nature.blossom_leaves)
|
nature.enqueue_node(pos, node, nature.blossom_leaves)
|
||||||
|
@ -19,7 +19,8 @@ if minetest.get_modpath("moretrees") then
|
|||||||
minetest.register_alias("nature:blossom", "default:leaves")
|
minetest.register_alias("nature:blossom", "default:leaves")
|
||||||
end
|
end
|
||||||
|
|
||||||
nature.blossom_chance = 15
|
nature.leaves_blossom_chance = 15
|
||||||
|
nature.blossom_leaves_chance = 5
|
||||||
nature.blossom_delay = 3600
|
nature.blossom_delay = 3600
|
||||||
nature.apple_chance = 10
|
nature.apple_chance = 10
|
||||||
nature.apple_spread = 2
|
nature.apple_spread = 2
|
||||||
|
Loading…
Reference in New Issue
Block a user