Difference between revisions of "minetest.spawn tree"

From Minetest Developer Wiki
Jump to navigation Jump to search
(note about plants_lib)
Line 10: Line 10:
  
 
See [[treegen]] for a description of L-system trees.
 
See [[treegen]] for a description of L-system trees.
 +
 +
== Notes ==
 +
 +
VanessaE's [https://forum.minetest.net/viewtopic.php?id=3898 plants_lib] mod
 +
([https://github.com/VanessaE/plantlife/blob/master/plants_lib/ 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.
  
 
{{MissingExample}}
 
{{MissingExample}}
  
 
[[Category:Methods]]
 
[[Category:Methods]]

Revision as of 22:56, 8 August 2013

Syntax

minetest.spawn_tree(pos, tree)

Description

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

See treegen 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.