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 )
--different properties for bottom and side vines.
local selection_box
local biome = biome
local groups = { vines=1, snappy=3, flammable=2 }
local vine_name_end = 'vines:'..name..'_end'
@ -19,6 +18,7 @@ vines.register_vine = function( name, defs, biome )
local selection_box = { type = "wallmounted", }
local drawtype = 'signlike'
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 }, }
drawtype = 'plantlike'
end

View File

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