mirror of
https://github.com/luanti-org/luanti.git
synced 2025-06-27 16:36:03 +00:00
Add L-system trees as decorations (#14355)
This commit is contained in:
parent
f07e1026ac
commit
60810c2d37
10 changed files with 125 additions and 46 deletions
|
@ -32,6 +32,16 @@ with this program; if not, write to the Free Software Foundation, Inc.,
|
|||
namespace treegen
|
||||
{
|
||||
|
||||
void TreeDef::resolveNodeNames()
|
||||
{
|
||||
getIdFromNrBacklog(&trunknode.param0, "", CONTENT_IGNORE);
|
||||
getIdFromNrBacklog(&leavesnode.param0, "", CONTENT_IGNORE);
|
||||
if (leaves2_chance)
|
||||
getIdFromNrBacklog(&leaves2node.param0, "", CONTENT_IGNORE);
|
||||
if (fruit_chance)
|
||||
getIdFromNrBacklog(&fruitnode.param0, "", CONTENT_IGNORE);
|
||||
}
|
||||
|
||||
void make_tree(MMVManip &vmanip, v3s16 p0, bool is_apple_tree,
|
||||
const NodeDefManager *ndef, s32 seed)
|
||||
{
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue