From bc86a3e2ab350b890876d628391d2cd3b733825c Mon Sep 17 00:00:00 2001 From: Vanessa Ezekowitz Date: Wed, 20 Feb 2013 11:46:36 -0500 Subject: [PATCH] made jungle trees more numerous and able to spread further from water, took leaves out of the avoidnodes table, there's really no reason to have them there and having them causes too much spacing between trees. Reduced the prevalence of sequoias. --- biome_defs.lua | 14 ++++++-------- node_defs.lua | 6 ------ tree_biomes.txt | 2 +- 3 files changed, 7 insertions(+), 15 deletions(-) diff --git a/biome_defs.lua b/biome_defs.lua index 155101b..c3b8957 100644 --- a/biome_defs.lua +++ b/biome_defs.lua @@ -59,8 +59,8 @@ moretrees.sequoia_biome = { max_elevation = 10, temp_min = 1, temp_max = -0.4, - rarity = 50, - max_count = 15, + rarity = 90, + max_count = 5, } moretrees.birch_biome = { @@ -129,19 +129,17 @@ moretrees.rubber_tree_biome = { max_count = 10, } - moretrees.jungletree_biome = { surface = "default:dirt_with_grass", avoid_nodes = moretrees.avoidnodes, - avoid_radius = 12, + avoid_radius = 5, seed_diff = 329, min_elevation = -5, max_elevation = 10, near_nodes = {"default:water_source"}, - near_nodes_size = 15, - near_nodes_count = 10, --- temp_min = 0.05, - rarity = 50, + near_nodes_size = 20, + near_nodes_count = 7, + rarity = 10, max_count = 10, } diff --git a/node_defs.lua b/node_defs.lua index 2625b7e..6875f7d 100644 --- a/node_defs.lua +++ b/node_defs.lua @@ -119,7 +119,6 @@ for i in ipairs(moretrees.treelist) do end table.insert(moretrees.avoidnodes, "moretrees:"..treename.."_trunk") - table.insert(moretrees.avoidnodes, "moretrees:"..treename.."_leaves") end -- Extra leaves for jungle trees: @@ -186,12 +185,7 @@ end table.insert(moretrees.avoidnodes, "default:jungletree") table.insert(moretrees.avoidnodes, "moretrees:jungletree_trunk") -table.insert(moretrees.avoidnodes, "moretrees:jungletree_leaves_red") -table.insert(moretrees.avoidnodes, "moretrees:jungletree_leaves_green") -table.insert(moretrees.avoidnodes, "moretrees:jungletree_leaves_yellow") table.insert(moretrees.avoidnodes, "moretrees:fir_trunk") -table.insert(moretrees.avoidnodes, "moretrees:fir_leaves") -table.insert(moretrees.avoidnodes, "moretrees:fir_leaves_bright") -- Backward compatbility with old mods/nodes: minetest.registered_items["jungletree"] = nil diff --git a/tree_biomes.txt b/tree_biomes.txt index 71814f3..e7d4c17 100644 --- a/tree_biomes.txt +++ b/tree_biomes.txt @@ -2,7 +2,7 @@ Elevation Temperature Nearness to Nearby What nodes Perlin Avoid Tree type (m) (approx., °C) some node water to spawn on seed diff radius ----------------------------------------------------------------------------------------------------------------------- -jungle tree - 5 to +10 above +26 water, 15 10 dirt_with_grass 329 7 +jungle tree - 5 to +10 n/a water, 20 10 dirt_with_grass 329 5 fir above +25 -20 to +10 n/a n/a dirt_with_grass 359 8 palm - 1 to + 1 +18 to +32 water, 15 10 sand 330 5 apple + 1 to +10 +23 to +32 n/a n/a dirt_with grass 331 15 -- 2.30.2