1
0
mirror of https://github.com/sys4-fr/server-nalc.git synced 2024-11-18 16:20:38 +01:00
server-nalc/mods/plantlife_modpack/vines
LeMagnesium e9b2fd984a [signs_lib & building_blocks & markers & ...] Updates
- building_blocks: Replace `maxwear` deprecated field
- signs_lib: use `verbose` level instead of unexisting `debug`
- maze: Replace `dug_item` deprecated field
- vines: Replace `maxwear` deprecated field
- quartz: Replace `height_max` and `height_min` deprecated fields
- sea/seacoal & sea/seaplants: Replace `height_max` and `height_min` deprecated fields
- snow: Replace `height_max` and `height_min` deprecated fields
2015-10-26 13:45:27 +01:00
..
textures compress textures, fix preview shields 2015-07-24 23:09:08 +02:00
aliases.lua Update home decor and plantlife 2015-03-02 21:55:02 +01:00
crafts.lua Update home decor and plantlife 2015-03-02 21:55:02 +01:00
depends.txt Updated moretrees, plantlife, and added biome_lib 2015-08-12 14:16:18 +02:00
functions.lua [plantlife_modpack] Update 2015-10-26 13:27:02 +01:00
init.lua Turned all boot messages into clean minetest.log() calls 2015-05-24 10:50:22 +02:00
LICENSE.md Update home decor and plantlife 2015-03-02 21:55:02 +01:00
nodes.lua [plantlife_modpack] Update 2015-10-26 13:27:02 +01:00
README.md Updated moretrees, plantlife, and added biome_lib 2015-08-12 14:16:18 +02:00
recipes.lua Updated plantlife : added sunflowers 2015-04-02 16:47:18 +02:00
shear.lua [signs_lib & building_blocks & markers & ...] Updates 2015-10-26 13:45:27 +01:00
vines.lua Updated plantlife_modpack 2015-05-15 13:19:17 +02:00

Vines

Features

  • Rope block for spawning rope that slowly drops into the deep.
  • Vines are climbable and slowly grow downward.
  • Shears that allow the collecting of vines.
  • Spawns vines on jungletree leaves.
  • Roots on the bottom of dirt and dirt with grass nodes.
  • Spawns vines on trees located in swampy area.
  • Jungle vines that spawn on the side of jungletrees

API

The API is very minimal. It allows the registering of vines and the spawning of existing vines on nodes of your own.

If you want vines to spawn on a certain node then you can choose which vine by adding to the node groups the unique group of that vine. This is determined by the name of the vine ( see vines.lua ) appended with '_vines'. An example would be.

"willow_vines" or "jungle_vines"

There are two types of vines. One that spawns at the bottom of nodes and uses the plantlike drawtype, and vines that spawn on the side that use signlike drawtype. The type is determined by the spawn_on_side property in the biome table.

Example

taken from mod


  vines.register_vine( name, definitions, biome )

  --e.g.

  vines.register_vine( 'vine', {
    description = "Vines",
    average_length = 9
  }, biome )

definitions

key type description
description string The vine's tooltip description
average_length int The average length of vines

For biome definitions please see the biome_lib API documentation

Notice

Vines use after_destruct on registered leave nodes to remove vines from which the leaves are removed. This is done by using the override function. Malfunctions may occur if other mods override the after_destruct of these nodes also.