add initial support for dfcavern saplings

This commit is contained in:
tenplus1 2022-06-30 09:12:11 +01:00
parent 804343f7c0
commit 5f81c3dfa2
3 changed files with 20 additions and 1 deletions

View File

@ -9,3 +9,4 @@ flowers?
dye? dye?
ferns? ferns?
dryplants? dryplants?
df_trees?

View File

@ -1,4 +1,4 @@
name = bonemeal name = bonemeal
depends = default depends = default
optional_depends = intllib, lucky_block, farming, ethereal, moretrees, technic_worldgen, flowers, dye, ferns, dryplants optional_depends = intllib, lucky_block, farming, ethereal, moretrees, technic_worldgen, flowers, dye, ferns, dryplants, df_trees
description = Adds bone and bonemeal giving the ability to quickly grow plants and saplings. description = Adds bone and bonemeal giving the ability to quickly grow plants and saplings.

View File

@ -190,3 +190,21 @@ if minetest.get_modpath("dye") then
}) })
end end
end end
if minetest.get_modpath("df_trees") then
local function spore_tree_fix(pos)
minetest.set_node(pos, {name = "air"})
df_trees.spawn_spore_tree(pos)
end
bonemeal:add_sapling({
{"df_trees:black_cap_sapling", df_trees.spawn_black_cap, "soil"},
{"df_trees:fungiwood_sapling", df_trees.spawn_fungiwood, "soil"},
{"df_trees:goblin_cap_sapling", df_trees.spawn_goblin_cap, "soil"},
{"df_trees:spore_tree_sapling", spore_tree_fix, "soil"},
{"df_trees:tower_cap_sapling", df_trees.spawn_tower_cap, "soil"},
{"df_trees:tunnel_tube_sapling", df_trees.spawn_tunnel_tube, "soil"}
})
end