Biomes: Add pine bush to taiga and snowy grassland

Replaces 'bush' in snowy grassland.
This commit is contained in:
TumeniNodes 2018-07-12 20:17:07 -04:00 committed by Paramat
parent d4b0b73ae0
commit 9318c71659
9 changed files with 142 additions and 2 deletions

View file

@ -85,6 +85,10 @@ function default.grow_sapling(pos)
minetest.log("action", "An acacia bush sapling grows into a bush at "..
minetest.pos_to_string(pos))
default.grow_acacia_bush(pos)
elseif node.name == "default:pine_bush_sapling" then
minetest.log("action", "A pine bush sapling grows into a bush at "..
minetest.pos_to_string(pos))
default.grow_pine_bush(pos)
elseif node.name == "default:emergent_jungle_sapling" then
minetest.log("action", "An emergent jungle sapling grows into a tree at "..
minetest.pos_to_string(pos))
@ -483,6 +487,16 @@ function default.grow_acacia_bush(pos)
end
-- Pine bush
function default.grow_pine_bush(pos)
local path = minetest.get_modpath("default") ..
"/schematics/pine_bush.mts"
minetest.place_schematic({x = pos.x - 1, y = pos.y - 1, z = pos.z - 1},
path, "0", nil, false)
end
--
-- Sapling 'on place' function to check protection of node and resulting tree volume
--