mirror of
https://github.com/minetest/minetest_game.git
synced 2025-06-29 21:30:26 +02:00
Biomes: Add pine bush to taiga and snowy grassland
Replaces 'bush' in snowy grassland.
This commit is contained in:
@ -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
|
||||
--
|
||||
|
Reference in New Issue
Block a user