2015-02-13 01:54:35 +01:00
|
|
|
# Vines
|
|
|
|
|
|
|
|
## Features
|
2016-06-08 03:53:41 +02:00
|
|
|
- Rope blocks for spawning rope that slowly drops into the deep.
|
|
|
|
- Rope ladder that similarly descends into the deep.
|
2015-02-13 01:54:35 +01:00
|
|
|
- Vines are climbable and slowly grow downward.
|
2016-06-08 03:53:41 +02:00
|
|
|
- Shears that allow the collecting of vines and the trimming of ropes
|
2015-02-13 01:54:35 +01:00
|
|
|
- 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
|
2015-02-13 03:10:15 +01:00
|
|
|
The API is very minimal. It allows the registering of vines and the spawning of
|
|
|
|
existing vines on nodes of your own.
|
|
|
|
|
2015-02-13 03:16:37 +01:00
|
|
|
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.
|
2015-02-13 03:10:15 +01:00
|
|
|
|
2015-02-13 03:16:37 +01:00
|
|
|
"willow_vines" or "jungle_vines"
|
2015-02-13 01:54:35 +01:00
|
|
|
|
|
|
|
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
|
2015-02-13 03:10:15 +01:00
|
|
|
drawtype. The type is determined by the spawn_on_side property in the biome
|
|
|
|
table.
|
2015-02-13 01:54:35 +01:00
|
|
|
|
|
|
|
### Example
|
|
|
|
*taken from mod*
|
|
|
|
|
|
|
|
```lua
|
2015-02-13 02:10:35 +01:00
|
|
|
|
|
|
|
vines.register_vine( name, definitions, biome )
|
|
|
|
|
|
|
|
--e.g.
|
|
|
|
|
2015-02-13 01:54:35 +01:00
|
|
|
vines.register_vine( 'vine', {
|
|
|
|
description = "Vines",
|
|
|
|
average_length = 9
|
|
|
|
}, biome )
|
2015-02-13 02:10:35 +01:00
|
|
|
|
2015-02-13 01:54:35 +01:00
|
|
|
```
|
|
|
|
|
2015-02-13 02:10:35 +01:00
|
|
|
### definitions
|
2015-02-13 01:54:35 +01:00
|
|
|
|key| type| description|
|
|
|
|
|---| ---| ---|
|
2015-02-13 02:10:35 +01:00
|
|
|
|description| string|The vine's tooltip description|
|
2015-02-13 01:54:35 +01:00
|
|
|
|average_length|int| The average length of vines|
|
2015-02-13 02:10:35 +01:00
|
|
|
|
|
|
|
For biome definitions please see the [plants_lib API documentation](https://github.com/VanessaE/plantlife_modpack/blob/master/API.txt)
|
2015-02-13 01:54:35 +01:00
|
|
|
|
|
|
|
## 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.
|