mirror of
https://github.com/BX-Team/DivineMC.git
synced 2025-12-22 16:29:23 +00:00
Smooth bedrock layer
This commit is contained in:
@@ -0,0 +1,10 @@
|
|||||||
|
--- a/net/minecraft/world/level/levelgen/BelowZeroRetrogen.java
|
||||||
|
+++ b/net/minecraft/world/level/levelgen/BelowZeroRetrogen.java
|
||||||
|
@@ -82,6 +_,7 @@
|
||||||
|
}
|
||||||
|
|
||||||
|
public void applyBedrockMask(ProtoChunk chunk) {
|
||||||
|
+ if (org.bxteam.divinemc.DivineConfig.smoothBedrockLayer) return; // DivineMC - Smooth bedrock layer
|
||||||
|
LevelHeightAccessor heightAccessorForGeneration = chunk.getHeightAccessorForGeneration();
|
||||||
|
int minY = heightAccessorForGeneration.getMinY();
|
||||||
|
int maxY = heightAccessorForGeneration.getMaxY();
|
||||||
@@ -183,6 +183,7 @@ public class DivineConfig {
|
|||||||
public static ChunkSystemAlgorithms chunkWorkerAlgorithm = ChunkSystemAlgorithms.C2ME;
|
public static ChunkSystemAlgorithms chunkWorkerAlgorithm = ChunkSystemAlgorithms.C2ME;
|
||||||
public static int threadPoolPriority = Thread.NORM_PRIORITY + 1;
|
public static int threadPoolPriority = Thread.NORM_PRIORITY + 1;
|
||||||
public static boolean enableSecureSeed = false;
|
public static boolean enableSecureSeed = false;
|
||||||
|
public static boolean smoothBedrockLayer = false;
|
||||||
public static boolean enableDensityFunctionCompiler = false;
|
public static boolean enableDensityFunctionCompiler = false;
|
||||||
public static boolean enableStructureLayoutOptimizer = true;
|
public static boolean enableStructureLayoutOptimizer = true;
|
||||||
public static boolean deduplicateShuffledTemplatePoolElementList = false;
|
public static boolean deduplicateShuffledTemplatePoolElementList = false;
|
||||||
@@ -216,6 +217,9 @@ public class DivineConfig {
|
|||||||
"Terrain and biome generation remains the same, but all the ores and structures are generated with 1024-bit seed, instead of the usual 64-bit seed.",
|
"Terrain and biome generation remains the same, but all the ores and structures are generated with 1024-bit seed, instead of the usual 64-bit seed.",
|
||||||
"This seed is almost impossible to crack, and there are no weird links between structures.");
|
"This seed is almost impossible to crack, and there are no weird links between structures.");
|
||||||
|
|
||||||
|
smoothBedrockLayer = getBoolean("settings.chunk-generation.smooth-bedrock-layer", smoothBedrockLayer,
|
||||||
|
"Smoothens the bedrock layer at the bottom of overworld, and on the top of nether during the world generation.");
|
||||||
|
|
||||||
enableDensityFunctionCompiler = getBoolean("settings.chunk-generation.experimental.enable-density-function-compiler", enableDensityFunctionCompiler,
|
enableDensityFunctionCompiler = getBoolean("settings.chunk-generation.experimental.enable-density-function-compiler", enableDensityFunctionCompiler,
|
||||||
"Whether to use density function compiler to accelerate world generation",
|
"Whether to use density function compiler to accelerate world generation",
|
||||||
"",
|
"",
|
||||||
|
|||||||
Reference in New Issue
Block a user