diff options
author | Vanessa Ezekowitz <vanessaezekowitz@gmail.com> | 2017-03-30 18:29:55 -0400 |
---|---|---|
committer | Vanessa Ezekowitz <vanessaezekowitz@gmail.com> | 2017-03-30 18:29:55 -0400 |
commit | e932a8478a12eb4fdddb76b5db3535854efd8293 (patch) | |
tree | 989b37e276e3a499815ca7f3c17e49aec604417b | |
parent | 829509cc01729476595609ed63f4ccb15d651690 (diff) | |
download | dreambuilder_modpack-e932a8478a12eb4fdddb76b5db3535854efd8293.tar dreambuilder_modpack-e932a8478a12eb4fdddb76b5db3535854efd8293.tar.gz dreambuilder_modpack-e932a8478a12eb4fdddb76b5db3535854efd8293.tar.bz2 dreambuilder_modpack-e932a8478a12eb4fdddb76b5db3535854efd8293.tar.xz dreambuilder_modpack-e932a8478a12eb4fdddb76b5db3535854efd8293.zip |
update plantlife/nature classic
-rw-r--r-- | nature_classic/blossom.lua | 8 | ||||
-rw-r--r-- | nature_classic/init.lua | 6 |
2 files changed, 13 insertions, 1 deletions
diff --git a/nature_classic/blossom.lua b/nature_classic/blossom.lua index 62947b5..646a06e 100644 --- a/nature_classic/blossom.lua +++ b/nature_classic/blossom.lua @@ -16,11 +16,17 @@ minetest.register_node(":"..nature.blossom_node, { drawtype = "allfaces_optional", tiles = nature.blossom_textures, paramtype = "light", - groups = { snappy = 3, leafdecay = 3, flammable = 2, leafdecay = 3 }, + groups = nature.blossom_groups, sounds = default.node_sound_leaves_defaults(), waving = 1 }) +default.register_leafdecay({ + trunks = { nature.blossom_trunk }, + leaves = { nature.blossom_node }, + radius = nature.blossom_decay, +}) + minetest.register_craft({ type = "fuel", recipe = nature.blossom_node, diff --git a/nature_classic/init.lua b/nature_classic/init.lua index 47fd9bf..e61bad2 100644 --- a/nature_classic/init.lua +++ b/nature_classic/init.lua @@ -9,14 +9,20 @@ nature = {} nature.blossomqueue = {} nature.blossomqueue_max = 1000 +nature.blossom_decay = 2 +nature.blossom_trunk = "default:tree" nature.blossom_node = "nature:blossom" nature.blossom_leaves = "default:leaves" nature.blossom_textures = { "default_leaves.png^nature_blossom.png" } +nature.blossom_groups = { snappy = 3, leafdecay = 1, leaves = 1, flammable = 2 } if minetest.get_modpath("moretrees") then + nature.blossom_decay = moretrees.leafdecay_radius + nature.blossom_trunk = "moretrees:apple_tree_trunk" nature.blossom_node = "moretrees:apple_blossoms" nature.blossom_leaves = "moretrees:apple_tree_leaves" nature.blossom_textures = { "moretrees_apple_tree_leaves.png^nature_blossom.png" } + nature.blossom_groups = { snappy = 3, leafdecay = 1, leaves = 1, flammable = 2, moretrees_leaves = 1 }, minetest.register_alias("nature:blossom", "default:leaves") end |