Skip to content

Commit

Permalink
transition some more materials
Browse files Browse the repository at this point in the history
  • Loading branch information
wsor4035 committed May 24, 2024
1 parent bff9cdd commit 7854360
Show file tree
Hide file tree
Showing 2 changed files with 34 additions and 34 deletions.
60 changes: 30 additions & 30 deletions biome_defs.lua
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@

moretrees.beech_biome = {
surface = "default:dirt_with_grass",
surface = xcompat.materials.dirt_with_grass,
avoid_nodes = moretrees.avoidnodes,
avoid_radius = 8,
seed_diff = 2,
Expand All @@ -15,7 +15,7 @@ moretrees.palm_biome = {
seed_diff = 330,
min_elevation = -1,
max_elevation = 1,
near_nodes = {"default:water_source"},
near_nodes = {xcompat.materials.water_source},
near_nodes_size = 15,
near_nodes_count = 10,
temp_min = 0.25,
Expand All @@ -31,7 +31,7 @@ moretrees.date_palm_biome = {
seed_diff = 339,
min_elevation = -1,
max_elevation = 10,
near_nodes = {"default:water_source"},
near_nodes = {xcompat.materials.water_source},
near_nodes_size = 20,
near_nodes_count = 100,
near_nodes_vertical = 20,
Expand All @@ -48,7 +48,7 @@ moretrees.date_palm_biome_2 = {
seed_diff = 340,
min_elevation = 11,
max_elevation = 30,
near_nodes = {"default:water_source"},
near_nodes = {xcompat.materials.water_source},
near_nodes_size = 1,
near_nodes_count = 1,
near_nodes_vertical = 30,
Expand All @@ -59,7 +59,7 @@ moretrees.date_palm_biome_2 = {
}

moretrees.apple_tree_biome = {
surface = "default:dirt_with_grass",
surface = xcompat.materials.dirt_with_grass,
avoid_nodes = moretrees.avoidnodes,
avoid_radius = 10,
seed_diff = 331,
Expand All @@ -69,13 +69,13 @@ moretrees.apple_tree_biome = {
temp_max = -0.15,
rarity = 75,
max_count = 5,
place_on = {"default:dirt_with_grass"},
place_on = {xcompat.materials.dirt_with_grass},
biomes = {"deciduous_forest"},
fill_ratio = 0.0001,
}

moretrees.oak_biome = {
surface = "default:dirt_with_grass",
surface = xcompat.materials.dirt_with_grass,
avoid_nodes = moretrees.avoidnodes,
avoid_radius = 15,
seed_diff = 332,
Expand All @@ -89,7 +89,7 @@ moretrees.oak_biome = {
}

moretrees.sequoia_biome = {
surface = "default:dirt_with_grass",
surface = xcompat.materials.dirt_with_grass,
avoid_nodes = moretrees.avoidnodes,
avoid_radius = 10,
seed_diff = 333,
Expand All @@ -103,7 +103,7 @@ moretrees.sequoia_biome = {
}

moretrees.birch_biome = {
surface = "default:dirt_with_grass",
surface = xcompat.materials.dirt_with_grass,
avoid_nodes = moretrees.avoidnodes,
avoid_radius = 5,
seed_diff = 334,
Expand All @@ -117,27 +117,27 @@ moretrees.birch_biome = {
}

moretrees.willow_biome = {
surface = "default:dirt_with_grass",
surface = xcompat.materials.dirt_with_grass,
avoid_nodes = moretrees.avoidnodes,
avoid_radius = 10,
seed_diff = 337,
min_elevation = -5,
max_elevation = 5,
near_nodes = {"default:water_source"},
near_nodes = {xcompat.materials.water_source},
near_nodes_size = 15,
near_nodes_count = 5,
rarity = 75,
max_count = 5,
}

moretrees.rubber_tree_biome = {
surface = "default:dirt_with_grass",
surface = xcompat.materials.dirt_with_grass,
avoid_nodes = moretrees.avoidnodes,
avoid_radius = 10,
seed_diff = 338,
min_elevation = -5,
max_elevation = 5,
near_nodes = {"default:water_source"},
near_nodes = {xcompat.materials.water_source},
near_nodes_size = 15,
near_nodes_count = 10,
temp_min = -0.15,
Expand All @@ -147,8 +147,8 @@ moretrees.rubber_tree_biome = {

moretrees.jungletree_biome = {
surface = {
"default:dirt",
"default:dirt_with_grass",
xcompat.materials.dirt,
xcompat.materials.dirt_with_grass,
"woodsoils:dirt_with_leaves_1",
"woodsoils:grass_with_leaves_1",
"woodsoils:grass_with_leaves_2",
Expand All @@ -169,7 +169,7 @@ moretrees.jungletree_biome = {
}

moretrees.spruce_biome = {
surface = "default:dirt_with_grass",
surface = xcompat.materials.dirt_with_grass,
avoid_nodes = moretrees.avoidnodes,
avoid_radius = 10,
seed_diff = 335,
Expand All @@ -181,12 +181,12 @@ moretrees.spruce_biome = {
}

moretrees.cedar_biome = {
surface = "default:dirt_with_grass",
surface = xcompat.materials.dirt_with_grass,
avoid_nodes = moretrees.avoidnodes,
avoid_radius = 10,
seed_diff = 336,
min_elevation = 0, --Added to solve an issue where cedar trees would sometimes spawn deep underground
near_nodes = {"default:water_source"},
near_nodes = {xcompat.materials.water_source},
near_nodes_size = 15,
near_nodes_count = 5,
rarity = 50,
Expand All @@ -196,13 +196,13 @@ moretrees.cedar_biome = {

-- Poplar requires a lot of water.
moretrees.poplar_biome = {
surface = "default:dirt_with_grass",
surface = xcompat.materials.dirt_with_grass,
avoid_nodes = moretrees.avoidnodes,
avoid_radius = 6,
seed_diff = 341,
min_elevation = 0,
max_elevation = 50,
near_nodes = {"default:water_source"},
near_nodes = {xcompat.materials.water_source},
near_nodes_size = 15,
near_nodes_vertical = 5,
near_nodes_count = 1,
Expand All @@ -215,13 +215,13 @@ moretrees.poplar_biome = {
-- The humidity requirement it quite restrictive (apparently).
-- Spawn an occasional poplar elsewhere.
moretrees.poplar_biome_2 = {
surface = "default:dirt_with_grass",
surface = xcompat.materials.dirt_with_grass,
avoid_nodes = moretrees.avoidnodes,
avoid_radius = 6,
seed_diff = 341,
min_elevation = 0,
max_elevation = 50,
near_nodes = {"default:water_source"},
near_nodes = {xcompat.materials.water_source},
near_nodes_size = 15,
near_nodes_vertical = 4,
near_nodes_count = 10,
Expand All @@ -233,13 +233,13 @@ moretrees.poplar_biome_2 = {

-- Subterranean lakes provide enough water for poplars to grow
moretrees.poplar_biome_3 = {
surface = "default:dirt_with_grass",
surface = xcompat.materials.dirt_with_grass,
avoid_nodes = moretrees.avoidnodes,
avoid_radius = 6,
seed_diff = 342,
min_elevation = 0,
max_elevation = 50,
near_nodes = {"default:water_source"},
near_nodes = {xcompat.materials.water_source},
near_nodes_size = 1,
near_nodes_vertical = 25,
near_nodes_count = 1,
Expand All @@ -250,13 +250,13 @@ moretrees.poplar_biome_3 = {
}

moretrees.poplar_small_biome = {
surface = "default:dirt_with_grass",
surface = xcompat.materials.dirt_with_grass,
avoid_nodes = moretrees.avoidnodes,
avoid_radius = 4,
seed_diff = 343,
min_elevation = 0,
max_elevation = 50,
near_nodes = {"default:water_source"},
near_nodes = {xcompat.materials.water_source},
near_nodes_size = 10,
near_nodes_vertical = 5,
near_nodes_count = 1,
Expand All @@ -267,13 +267,13 @@ moretrees.poplar_small_biome = {
}

moretrees.poplar_small_biome_2 = {
surface = "default:dirt_with_grass",
surface = xcompat.materials.dirt_with_grass,
avoid_nodes = moretrees.avoidnodes,
avoid_radius = 4,
seed_diff = 343,
min_elevation = 0,
max_elevation = 50,
near_nodes = {"default:water_source"},
near_nodes = {xcompat.materials.water_source},
near_nodes_size = 10,
near_nodes_vertical = 4,
near_nodes_count = 5,
Expand All @@ -285,7 +285,7 @@ moretrees.poplar_small_biome_2 = {


moretrees.fir_biome = {
surface = "default:dirt_with_grass",
surface = xcompat.materials.dirt_with_grass,
avoid_nodes = moretrees.avoidnodes,
avoid_radius = 10,
seed_diff = 359,
Expand All @@ -298,7 +298,7 @@ moretrees.fir_biome = {

moretrees.fir_biome_snow = {
surface = {"snow:dirt_with_snow", "snow:snow"},
below_nodes = {"default:dirt", "default:dirt_with_grass", "snow:dirt_with_snow"},
below_nodes = {xcompat.materials.dirt, xcompat.materials.dirt_with_grass, "snow:dirt_with_snow"},
avoid_nodes = moretrees.avoidnodes,
avoid_radius = 10,
seed_diff = 359,
Expand Down
8 changes: 4 additions & 4 deletions saplings.lua
Original file line number Diff line number Diff line change
Expand Up @@ -5,8 +5,8 @@

local dirt_surfaces = {
set = true,
["default:dirt"] = true,
["default:dirt_with_grass"] = true,
[xcompat.materials.dirt] = true,
[xcompat.materials.dirt_with_grass] = true,
["default:dirt_with_dry_grass"] = true,
["default:dirt_with_coniferous_litter"] = true,
["default:dirt_with_rainforest_litter"] = true,
Expand All @@ -18,8 +18,8 @@ local dirt_surfaces = {

local conifer_surfaces = {
set = true,
["default:dirt"] = true,
["default:dirt_with_grass"] = true,
[xcompat.materials.dirt] = true,
[xcompat.materials.dirt_with_grass] = true,
["default:dirt_with_dry_grass"] = true,
["default:dirt_with_coniferous_litter"] = true,
["default:dirt_with_rainforest_litter"] = true,
Expand Down

0 comments on commit 7854360

Please sign in to comment.