2014-07-04 06:49:32 +02:00
|
|
|
-- Nature Classic mod
|
|
|
|
-- Originally by neko259
|
|
|
|
|
|
|
|
-- Nature is slowly capturing the world!
|
|
|
|
|
|
|
|
local current_mod_name = minetest.get_current_modname()
|
|
|
|
|
2015-02-09 05:17:02 +01:00
|
|
|
nature = {}
|
2017-08-03 15:02:56 +02:00
|
|
|
|
2015-02-09 05:17:02 +01:00
|
|
|
nature.blossomqueue = {}
|
2015-04-02 12:27:46 +02:00
|
|
|
nature.blossomqueue_max = 1000
|
2015-02-09 05:17:02 +01:00
|
|
|
|
2017-03-31 00:29:24 +02:00
|
|
|
nature.blossom_decay = 2
|
|
|
|
nature.blossom_trunk = "default:tree"
|
2015-02-09 05:17:02 +01:00
|
|
|
nature.blossom_node = "nature:blossom"
|
|
|
|
nature.blossom_leaves = "default:leaves"
|
|
|
|
nature.blossom_textures = { "default_leaves.png^nature_blossom.png" }
|
2017-03-31 00:29:24 +02:00
|
|
|
nature.blossom_groups = { snappy = 3, leafdecay = 1, leaves = 1, flammable = 2 }
|
2015-02-09 05:17:02 +01:00
|
|
|
|
|
|
|
if minetest.get_modpath("moretrees") then
|
2017-03-31 00:29:24 +02:00
|
|
|
nature.blossom_decay = moretrees.leafdecay_radius
|
|
|
|
nature.blossom_trunk = "moretrees:apple_tree_trunk"
|
2015-02-09 05:17:02 +01:00
|
|
|
nature.blossom_node = "moretrees:apple_blossoms"
|
|
|
|
nature.blossom_leaves = "moretrees:apple_tree_leaves"
|
|
|
|
nature.blossom_textures = { "moretrees_apple_tree_leaves.png^nature_blossom.png" }
|
2023-07-11 00:24:25 +02:00
|
|
|
nature.blossom_groups = { snappy = 3, leafdecay = 1, leaves = 1, flammable = 2, moretrees_leaves = 1 }
|
2015-02-09 05:17:02 +01:00
|
|
|
minetest.register_alias("nature:blossom", "default:leaves")
|
|
|
|
end
|
|
|
|
|
2015-04-02 12:18:09 +02:00
|
|
|
nature.leaves_blossom_chance = 15
|
|
|
|
nature.blossom_leaves_chance = 5
|
2015-02-09 05:37:48 +01:00
|
|
|
nature.blossom_delay = 3600
|
2015-11-03 12:32:59 +01:00
|
|
|
nature.apple_delay = 3600
|
2015-02-09 05:17:02 +01:00
|
|
|
nature.apple_chance = 10
|
|
|
|
nature.apple_spread = 2
|
|
|
|
|
2015-04-02 13:27:10 +02:00
|
|
|
nature.meta_blossom_time = "blossom_time"
|
2015-04-02 15:47:32 +02:00
|
|
|
nature.blossom_duration = nature.blossom_delay
|
2015-02-09 05:17:02 +01:00
|
|
|
|
2014-07-04 06:49:32 +02:00
|
|
|
dofile(minetest.get_modpath(current_mod_name) .. "/config.lua")
|
|
|
|
dofile(minetest.get_modpath(current_mod_name) .. "/global_function.lua")
|
|
|
|
dofile(minetest.get_modpath(current_mod_name) .. "/blossom.lua")
|