Difference between revisions of "minetest.spawn tree"

From Minetest Developer Wiki
Jump to navigation Jump to search
(note about plants_lib)
(→‎Description: Update link)
Line 9: Line 9:
 
Spawns an L-system tree at position <code>pos</code>, using the tree definition <code>tree</code>.
 
Spawns an L-system tree at position <code>pos</code>, using the tree definition <code>tree</code>.
  
See [[treegen]] for a description of L-system trees.
+
See [[Introduction to L-system trees]] for a description of L-system trees.
  
 
== Notes ==
 
== Notes ==

Revision as of 15:56, 26 January 2015

Syntax

minetest.spawn_tree(pos, tree)

Description

Spawns an L-system tree at position pos, using the tree definition tree.

See Introduction to L-system trees for a description of L-system trees.

Notes

VanessaE's plants_lib mod (github) provides functions to register L-system trees to be spawned during map generation, and finds places for them to spawn based on the map seed and biome.

Mbox information.png This article is missing examples.
Feel free to add them.