You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
Bas 2f7073300b Merge pull request #13 from VanessaE/master 5 years ago
textures Replace nodes on servers that use the older vines 7 years ago
.luacheckrc Add `.luacheckrc` and fix warnings. 5 years ago
LICENSE.md Documentation update 7 years ago
README.md README fix 7 years ago
aliases.lua Replace nodes on servers that use the older vines 7 years ago
bower.json minetest bower.json package support 7 years ago
crafts.lua Complete rewrite 7 years ago
depends.txt follow renaming of plants_lib --> biome_lib 7 years ago
description.txt Add standard mod files. 5 years ago
functions.lua use on_destruct for vines decay 5 years ago
init.lua Replace nodes on servers that use the older vines 7 years ago
mod.conf Add standard mod files. 5 years ago
nodes.lua Add `.luacheckrc` and fix warnings. 5 years ago
recipes.lua added groups to crafting 6 years ago
screenshot.png Add standard mod files. 5 years ago
shear.lua added groups to crafting 6 years ago
vines.lua Add `.luacheckrc` and fix warnings. 5 years ago

README.md

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 plants_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.