Minetest_game: LUA API: minetest.register_tree()

Created on 30 Jan 2021  路  2Comments  路  Source: minetest/minetest_game

Adds the ability to create custom trees more easily.

Usage

minetest.register_tree(tree_definiton)

the tree definiton contains:

  • biomes: table to specify the biome names the tree can generate in
  • stem_node: node reference to what will be the stem of the tree
  • stem_height_min: minimum stem height
  • stem_height_max: maximum stem height
  • leaves_node: node reference to what will be the leaves of the tree

Most helpful comment

This is a feature, and because MTG is officially in maintenance mode, this will likely get closed.

I would recommend making your own mod that implements this function. You should not need any changes to MTG or the Engine to pull this off.

  1. Everything that writes to the minetest table like that sounds like it should be an engine feature
  2. This can be done well as a standalone library mod (as pointed out already)
  3. MTG is in maintenance mode (as pointed out already)

So yes, this should be closed.

All 2 comments

This is a feature, and because MTG is officially in maintenance mode, this will likely get closed.

I would recommend making your own mod that implements this function. You should not need any changes to MTG or the Engine to pull this off.

This is a feature, and because MTG is officially in maintenance mode, this will likely get closed.

I would recommend making your own mod that implements this function. You should not need any changes to MTG or the Engine to pull this off.

  1. Everything that writes to the minetest table like that sounds like it should be an engine feature
  2. This can be done well as a standalone library mod (as pointed out already)
  3. MTG is in maintenance mode (as pointed out already)

So yes, this should be closed.

Was this page helpful?
0 / 5 - 0 ratings

Related issues

HybridDog picture HybridDog  路  50Comments

Extex101 picture Extex101  路  42Comments

rubenwardy picture rubenwardy  路  150Comments

MarkuBu picture MarkuBu  路  94Comments

sofar picture sofar  路  75Comments