update vines from upstream

This commit is contained in:
Vanessa Ezekowitz 2015-03-01 12:25:54 -05:00
parent f0e3c1052a
commit 7059756929
2 changed files with 24 additions and 15 deletions

View File

@ -1,6 +1,5 @@
vines.register_vine = function( name, defs, biome ) vines.register_vine = function( name, defs, biome )
--different properties for bottom and side vines. local biome = biome
local selection_box
local groups = { vines=1, snappy=3, flammable=2 } local groups = { vines=1, snappy=3, flammable=2 }
local vine_name_end = 'vines:'..name..'_end' local vine_name_end = 'vines:'..name..'_end'
@ -19,6 +18,7 @@ vines.register_vine = function( name, defs, biome )
local selection_box = { type = "wallmounted", } local selection_box = { type = "wallmounted", }
local drawtype = 'signlike' local drawtype = 'signlike'
if ( not biome.spawn_on_side ) then if ( not biome.spawn_on_side ) then
--different properties for bottom and side vines.
selection_box = { type = "fixed", fixed = { -0.4, -1/2, -0.4, 0.4, 1/2, 0.4 }, } selection_box = { type = "fixed", fixed = { -0.4, -1/2, -0.4, 0.4, 1/2, 0.4 }, }
drawtype = 'plantlike' drawtype = 'plantlike'
end end

View File

@ -27,10 +27,10 @@ vines.register_vine( 'vine', {
spawn_chance = 100, spawn_chance = 100,
spawn_surfaces = { spawn_surfaces = {
"default:leaves", "default:leaves",
"default:jungleleave", "default:jungleleaves",
"moretrees:jungetree_leaves_red", "moretrees:jungletree_leaves_red",
"moretrees:jungetree_leaves_yellow", "moretrees:jungletree_leaves_yellow",
"moretrees:jungetree_leaves_green" "moretrees:jungletree_leaves_green"
}, },
spawn_on_bottom = true, spawn_on_bottom = true,
plantlife_limit = -0.9, plantlife_limit = -0.9,
@ -39,10 +39,10 @@ vines.register_vine( 'vine', {
vines.register_vine( 'side', { vines.register_vine( 'side', {
description = "Vines", description = "Vines",
average_length = 3, average_length = 6,
},{ },{
choose_random_wall = true, choose_random_wall = true,
avoid_nodes = {"group:vines"}, avoid_nodes = {"group:vines", "default:apple"},
choose_random_wall = true, choose_random_wall = true,
avoid_radius = 3, avoid_radius = 3,
spawn_delay = 500, spawn_delay = 500,
@ -50,21 +50,30 @@ vines.register_vine( 'side', {
spawn_surfaces = { spawn_surfaces = {
"default:leaves", "default:leaves",
"default:jungleleaves", "default:jungleleaves",
"moretrees:jungletree_leaves_red", "moretrees:jungetree_leaves_red",
"moretrees:jungletree_leaves_yellow", "moretrees:jungetree_leaves_yellow",
"moretrees:jungletree_leaves_green" "moretrees:jungetree_leaves_green"
}, },
spawn_on_side = true, spawn_on_side = true,
plantlife_limit = -0.9, plantlife_limit = -0.9,
humidity_min = 0.4, humidity_min = 0.4,
}) })
vines.register_vine( 'jungle', { vines.register_vine( "jungle", {
description = "Jungle Vines", description = "Jungle Vines",
average_length = 7, average_length = 7,
},{ },{
choose_random_wall = true, choose_random_wall = true,
avoid_nodes = {"group:vines"}, neighbors = {
"default:jungleleaves",
"moretrees:jungetree_leaves_red",
"moretrees:jungetree_leaves_yellow",
"moretrees:jungetree_leaves_green"
},
avoid_nodes = {
"vines:jungle_middle",
"vines:jungle_end",
},
avoid_radius = 5, avoid_radius = 5,
spawn_delay = 500, spawn_delay = 500,
spawn_chance = 100, spawn_chance = 100,
@ -73,7 +82,7 @@ vines.register_vine( 'jungle', {
"moretrees:jungletree_trunk" "moretrees:jungletree_trunk"
}, },
spawn_on_side = true, spawn_on_side = true,
plantlife_limit = -0.4, plantlife_limit = -0.9,
humidity_min = 0.2, humidity_min = 0.2,
}) })
@ -86,8 +95,8 @@ vines.register_vine( 'willow', {
avoid_radius = 5, avoid_radius = 5,
near_nodes = { 'default:water_source' }, near_nodes = { 'default:water_source' },
near_nodes_size = 1, near_nodes_size = 1,
near_nodes_vertical = 7,
near_nodes_count = 1, near_nodes_count = 1,
near_nodes_vertical = 7,
plantlife_limit = -0.8, plantlife_limit = -0.8,
spawn_chance = 10, spawn_chance = 10,
spawn_delay = 500, spawn_delay = 500,