summaryrefslogtreecommitdiff
path: root/vines/vines.lua
blob: 42c20d88b075d394da24078d9dc9488f24acc3c1 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
vines.register_vine( 'root', {
  description = "Roots",
  average_length = 9,
},{
  choose_random_wall = true,
  avoid_nodes = {"vines:root_middle"},
  avoid_radius = 5,
  spawn_delay = 500,
  spawn_chance = 10,
  spawn_surfaces = {
    "default:dirt_with_grass",
    "default:dirt"
  },
  spawn_on_bottom = true,
  plantlife_limit = -0.6,
  humidity_min = 0.4,
})

vines.register_vine( 'vine', {
  description = "Vines",
  average_length = 5,
},{
  choose_random_wall = true,
  avoid_nodes = {"group:vines"},
  avoid_radius = 5,
  spawn_delay = 500,
  spawn_chance = 100,
  spawn_surfaces = {
    "default:leaves",
    "default:jungleleaves",
    "moretrees:jungletree_leaves_red",
    "moretrees:jungletree_leaves_yellow",
    "moretrees:jungletree_leaves_green"
  },
  spawn_on_bottom = true,
  plantlife_limit = -0.9,
  humidity_min = 0.7,
})

vines.register_vine( 'side', {
  description = "Vines",
  average_length = 6,
},{
  choose_random_wall = true,
  avoid_nodes = {"group:vines", "default:apple"},
  avoid_radius = 3,
  spawn_delay = 500,
  spawn_chance = 100,
  spawn_surfaces = {
    "default:leaves",
    "default:jungleleaves",
    "moretrees:jungletree_leaves_red",
    "moretrees:jungletree_leaves_yellow",
    "moretrees:jungletree_leaves_green"
  },
  spawn_on_side = true,
  plantlife_limit = -0.9,
  humidity_min = 0.4,
})

vines.register_vine( "jungle", {
  description = "Jungle Vines",
  average_length = 7,
},{
  choose_random_wall = true,
  neighbors = {
    "default:jungleleaves",
    "moretrees:jungletree_leaves_red",
    "moretrees:jungletree_leaves_yellow",
    "moretrees:jungletree_leaves_green"
  },
  avoid_nodes = {
    "vines:jungle_middle",
    "vines:jungle_end",
  },
  avoid_radius = 5,
  spawn_delay = 500,
  spawn_chance = 100,
  spawn_surfaces = {
    "default:jungletree",
    "moretrees:jungletree_trunk"
  },
  spawn_on_side = true,
  plantlife_limit = -0.9,
  humidity_min = 0.2,
})

vines.register_vine( 'willow', {
  description = "Willow Vines",
  average_length = 9,
},{
  choose_random_wall = true,
  avoid_nodes = { "vines:willow_middle" },
  avoid_radius = 5,
  near_nodes = { 'default:water_source' },
  near_nodes_size = 1,
  near_nodes_count = 1,
  near_nodes_vertical = 7,
  plantlife_limit = -0.8,
  spawn_chance = 10,
  spawn_delay = 500,
  spawn_on_side = true,
  spawn_surfaces = {"moretrees:willow_leaves"},
  humidity_min = 0.5
})