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 = {}
|
|
|
|
nature.blossomqueue = {}
|
|
|
|
|
|
|
|
nature.blossom_node = "nature:blossom"
|
|
|
|
nature.blossom_leaves = "default:leaves"
|
|
|
|
nature.blossom_textures = { "default_leaves.png^nature_blossom.png" }
|
|
|
|
|
|
|
|
if minetest.get_modpath("moretrees") then
|
|
|
|
nature.blossom_node = "moretrees:apple_blossoms"
|
|
|
|
nature.blossom_leaves = "moretrees:apple_tree_leaves"
|
|
|
|
nature.blossom_textures = { "moretrees_apple_tree_leaves.png^nature_blossom.png" }
|
|
|
|
minetest.register_alias("nature:blossom", "default:leaves")
|
|
|
|
end
|
|
|
|
|
|
|
|
nature.blossom_chance = 15
|
|
|
|
nature.blossom_delay = 10 --3600
|
|
|
|
nature.apple_chance = 10
|
|
|
|
nature.apple_spread = 2
|
|
|
|
|
|
|
|
nature.node_young = "young"
|
|
|
|
nature.setting_true = "true"
|
|
|
|
nature.setting_false = "false"
|
|
|
|
nature.youth_delay = 5
|
|
|
|
|
|
|
|
function dumppos(pos)
|
|
|
|
return "("..pos.x..","..pos.y..","..pos.z..")"
|
|
|
|
end
|
|
|
|
|
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")
|
|
|
|
|
|
|
|
minetest.log("info", "[Nature Classic] loaded!")
|