plantlife_modpack/vines
2017-01-06 08:19:12 -03:00
..
textures Vines update 2015-02-17 01:31:36 -05:00
aliases.lua Vines update 2015-02-17 01:31:36 -05:00
crafts.lua Vines update 2015-02-17 01:31:36 -05:00
depends.txt split plants_lib off into its own repository 2015-08-09 10:37:50 -04:00
functions.lua Fix to prevent crashes 2017-01-06 08:19:12 -03:00
init.lua Vines update 2015-02-17 01:31:36 -05:00
LICENSE.md Vines update 2015-02-17 01:31:36 -05:00
nodes.lua tile_images --> tiles 2015-10-23 13:09:05 -04:00
README.md split plants_lib off into its own repository 2015-08-09 10:37:50 -04:00
recipes.lua Vines update 2015-02-17 01:31:36 -05:00
shear.lua fix bad shers wield image ref 2015-05-28 10:32:45 -04:00
vines.lua don't grow vines on default trees 2015-05-10 17:22:36 -04: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.