1
0
mirror of https://codeberg.org/tenplus1/bonemeal.git synced 2025-07-12 05:10:29 +02:00

add support for caverealms mushroom sapling

This commit is contained in:
TenPlus1
2019-01-07 10:02:44 +00:00
parent 9bc52e2042
commit 54b856158c
2 changed files with 20 additions and 7 deletions

View File

@ -123,3 +123,20 @@ elseif minetest.get_modpath("technic_worldgen") then
{"moretrees:rubber_tree_sapling", technic.rubber_tree_model, "soil"},
})
end
if minetest.get_modpath("caverealms") then
local fil = minetest.get_modpath("caverealms") .. "/schematics/shroom.mts"
local add_shroom = function(pos)
minetest.swap_node(pos, {name = "air"})
minetest.place_schematic(
{x = pos.x - 5, y = pos.y, z = pos.z - 5}, fil, 0, nil, false)
end
bonemeal:add_sapling({
{"caverealms:mushroom_sapling", add_shroom, "soil"},
})
end