1
0
鏡像自 https://github.com/mt-mods/moretrees.git 已同步 2025-09-18 12:40:34 +02:00

Multiple changes, see below:

Fix replacement of default trees so that it works correctly.  Beeches
now use default tree nodes, but L-systems models.  This redefines the
default tree, wood, leaves, and saplings so that they use moretrees'
textures "Beech" in their descriptions, but only if replacement of
default trees is enabled.

Added backward-compat aliases for this change.

Moved tree replacement mapgen->air aliases to a more logical spot in the
code.

Also, changed out all leaf decay dig_node() calls for nodeupdate(), since the
former calls the latter anyway, and the latter is what does the job.

Increased the palm leaf decay radius to 12.
此提交包含在:
Vanessa Ezekowitz
2013-04-07 22:09:18 -04:00
父節點 d877bd51bb
當前提交 4c198fad78
共有 5 個檔案被更改,包括 98 行新增24 行删除

查看文件

@@ -1,4 +1,4 @@
-- More trees! 2013-02-11
-- More trees! 2013-04-07
--
-- This mod adds more types of trees to the game
--
@@ -18,18 +18,21 @@
moretrees = {}
-- These first two dofile() calls must precede any others, and must remain in
-- this order, otherwise variables and node names will get skipped.
dofile(minetest.get_modpath("moretrees").."/settings.lua")
dofile(minetest.get_modpath("moretrees").."/node_defs.lua")
dofile(minetest.get_modpath("moretrees").."/tree_models.lua")
dofile(minetest.get_modpath("moretrees").."/biome_defs.lua")
dofile(minetest.get_modpath("moretrees").."/crafts.lua")
dofile(minetest.get_modpath("moretrees").."/leafdecay.lua")
dofile(minetest.get_modpath("moretrees").."/saplings.lua")
if moretrees.enable_replace_default_trees then
minetest.register_alias("mapgen_tree", "air")
minetest.register_alias("mapgen_leaves", "air")
minetest.register_alias("mapgen_apple", "air")
plantslib:register_generate_plant(moretrees.beech_biome, moretrees.beech_model)
end
-- tree spawning setup
if moretrees.enable_apple_tree then