mirror of
https://github.com/mt-mods/moretrees.git
synced 2024-09-27 14:50:32 +02:00
tune spawning to be better
This commit is contained in:
parent
6cb59dc07c
commit
f02b9d4e47
|
@ -69,6 +69,9 @@ moretrees.apple_tree_biome = {
|
||||||
temp_max = -0.15,
|
temp_max = -0.15,
|
||||||
rarity = 75,
|
rarity = 75,
|
||||||
max_count = 5,
|
max_count = 5,
|
||||||
|
place_on = {"default:dirt_with_grass"},
|
||||||
|
biomes = {"deciduous_forest"},
|
||||||
|
fill_ratio = 0.0001,
|
||||||
}
|
}
|
||||||
|
|
||||||
moretrees.oak_biome = {
|
moretrees.oak_biome = {
|
||||||
|
@ -82,6 +85,7 @@ moretrees.oak_biome = {
|
||||||
temp_max = 0.2,
|
temp_max = 0.2,
|
||||||
rarity = 50,
|
rarity = 50,
|
||||||
max_count = 5,
|
max_count = 5,
|
||||||
|
fill_ratio = 0.0003
|
||||||
}
|
}
|
||||||
|
|
||||||
moretrees.sequoia_biome = {
|
moretrees.sequoia_biome = {
|
||||||
|
@ -95,6 +99,7 @@ moretrees.sequoia_biome = {
|
||||||
temp_max = -0.4,
|
temp_max = -0.4,
|
||||||
rarity = 90,
|
rarity = 90,
|
||||||
max_count = 5,
|
max_count = 5,
|
||||||
|
fill_ratio = 0.0001,
|
||||||
}
|
}
|
||||||
|
|
||||||
moretrees.birch_biome = {
|
moretrees.birch_biome = {
|
||||||
|
@ -145,7 +150,8 @@ moretrees.jungletree_biome = {
|
||||||
"default:dirt_with_grass",
|
"default:dirt_with_grass",
|
||||||
"woodsoils:dirt_with_leaves_1",
|
"woodsoils:dirt_with_leaves_1",
|
||||||
"woodsoils:grass_with_leaves_1",
|
"woodsoils:grass_with_leaves_1",
|
||||||
"woodsoils:grass_with_leaves_2"
|
"woodsoils:grass_with_leaves_2",
|
||||||
|
"default:dirt_with_rainforest_litter",
|
||||||
},
|
},
|
||||||
avoid_nodes = {"moretrees:jungletree_trunk"},
|
avoid_nodes = {"moretrees:jungletree_trunk"},
|
||||||
max_count = 12,
|
max_count = 12,
|
||||||
|
@ -158,6 +164,7 @@ moretrees.jungletree_biome = {
|
||||||
near_nodes_vertical = 2,
|
near_nodes_vertical = 2,
|
||||||
near_nodes_count = 1,
|
near_nodes_count = 1,
|
||||||
plantlife_limit = -0.9,
|
plantlife_limit = -0.9,
|
||||||
|
biomes = {"rainforest", "rainforest_swamp"},
|
||||||
}
|
}
|
||||||
|
|
||||||
moretrees.spruce_biome = {
|
moretrees.spruce_biome = {
|
||||||
|
|
6
init.lua
6
init.lua
|
@ -119,9 +119,9 @@ function translate_biome_defs(def, treename, index)
|
||||||
local deco_def = {
|
local deco_def = {
|
||||||
name = treename .. "_" .. index,
|
name = treename .. "_" .. index,
|
||||||
deco_type = "simple",
|
deco_type = "simple",
|
||||||
place_on = def.surface,
|
place_on = def.place_on or def.surface,
|
||||||
sidelen = 16,
|
sidelen = 16,
|
||||||
fill_ratio = 0.02,
|
fill_ratio = def.fill_ratio or 0.005,
|
||||||
--biomes eventually?
|
--biomes eventually?
|
||||||
y_min = def.min_elevation,
|
y_min = def.min_elevation,
|
||||||
y_max = def.max_elevation,
|
y_max = def.max_elevation,
|
||||||
|
@ -220,7 +220,7 @@ minetest.register_on_generated(function(minp, maxp, blockseed)
|
||||||
--minetest.chat_send_all("yay")
|
--minetest.chat_send_all("yay")
|
||||||
local timer = minetest.get_node_timer({x=pos.x, y=pos.y+1, z=pos.z})
|
local timer = minetest.get_node_timer({x=pos.x, y=pos.y+1, z=pos.z})
|
||||||
timer:start(math.random(2,10))
|
timer:start(math.random(2,10))
|
||||||
minetest.set_node(pos, {name="default:stone"})
|
--minetest.set_node(pos, {name="default:stone"})
|
||||||
end
|
end
|
||||||
end)
|
end)
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue
Block a user