summaryrefslogtreecommitdiffstats
path: root/src/Generating/FinishGen.cpp
diff options
context:
space:
mode:
author12xx12 <44411062+12xx12@users.noreply.github.com>2020-08-12 09:20:38 +0200
committerGitHub <noreply@github.com>2020-08-12 09:20:38 +0200
commit47f7727b7f37972374dea1a7e0da67b7aff9782f (patch)
tree00232ee86a5bd4016bf1a77b97af1e52e6dc7ffd /src/Generating/FinishGen.cpp
parentRemove BountySource from funding sources (diff)
downloadcuberite-47f7727b7f37972374dea1a7e0da67b7aff9782f.tar
cuberite-47f7727b7f37972374dea1a7e0da67b7aff9782f.tar.gz
cuberite-47f7727b7f37972374dea1a7e0da67b7aff9782f.tar.bz2
cuberite-47f7727b7f37972374dea1a7e0da67b7aff9782f.tar.lz
cuberite-47f7727b7f37972374dea1a7e0da67b7aff9782f.tar.xz
cuberite-47f7727b7f37972374dea1a7e0da67b7aff9782f.tar.zst
cuberite-47f7727b7f37972374dea1a7e0da67b7aff9782f.zip
Diffstat (limited to 'src/Generating/FinishGen.cpp')
-rw-r--r--src/Generating/FinishGen.cpp21
1 files changed, 21 insertions, 0 deletions
diff --git a/src/Generating/FinishGen.cpp b/src/Generating/FinishGen.cpp
index 90c3e6ea4..f9315333b 100644
--- a/src/Generating/FinishGen.cpp
+++ b/src/Generating/FinishGen.cpp
@@ -1769,6 +1769,27 @@ void cFinishGenOreNests::GenerateOre(
}
}
+ // Gold ores are generated more often in Mesa-Type-Biomes:
+ // https://minecraft.gamepedia.com/Gold_Ore
+ if (a_OreType == E_BLOCK_GOLD_ORE)
+ {
+ auto BiomeSampleOne = a_ChunkDesc.GetBiome( 4, 4);
+ auto BiomeSampleTwo = a_ChunkDesc.GetBiome( 4, 12);
+ auto BiomeSampleThree = a_ChunkDesc.GetBiome(12, 4);
+ auto BiomeSampleFour = a_ChunkDesc.GetBiome(12, 12);
+
+ if (
+ IsBiomeMesa(BiomeSampleOne) ||
+ IsBiomeMesa(BiomeSampleTwo) ||
+ IsBiomeMesa(BiomeSampleThree) ||
+ IsBiomeMesa(BiomeSampleFour)
+ )
+ {
+ a_MaxHeight = 76;
+ a_NumNests = 22; // 2 time default + 20 times mesa bonus
+ }
+ }
+
auto chunkX = a_ChunkDesc.GetChunkX();
auto chunkZ = a_ChunkDesc.GetChunkZ();
auto & blockTypes = a_ChunkDesc.GetBlockTypes();