Disabled blank biomes (for now)
Changes to be committed: modified: src/main/java/org/dimdev/dimdoors/util/BlankBiomeBuilder.java modified: src/main/java/org/dimdev/dimdoors/world/ModBiomes.java modified: src/main/resources/data/dimdoors/dimension/dungeon_pockets.json modified: src/main/resources/data/dimdoors/dimension/personal_pockets.json modified: src/main/resources/data/dimdoors/dimension/public_pockets.json
This commit is contained in:
parent
7a70268b41
commit
24ff5a04bf
5 changed files with 27 additions and 27 deletions
|
@ -20,24 +20,24 @@ public class BlankBiomeBuilder extends Biome.Builder {
|
|||
this.generationSettings(new GenerationSettings.Builder().surfaceBuilder(SurfaceBuilder.DEFAULT.method_30478(new TernarySurfaceConfig(Blocks.AIR.getDefaultState(), Blocks.AIR.getDefaultState(), Blocks.VOID_AIR.getDefaultState()))).build())
|
||||
.precipitation(Biome.Precipitation.NONE)
|
||||
.category(Biome.Category.NONE)
|
||||
.depth(0)
|
||||
.depth(0.0F)
|
||||
.temperatureModifier(Biome.TemperatureModifier.NONE)
|
||||
.downfall(0)
|
||||
.effects(this.createEffect(this.white))
|
||||
.downfall(0.0F)
|
||||
.effects(this.createEffect())
|
||||
.scale(0)
|
||||
.temperature(0.8f)
|
||||
.temperatureModifier(null)
|
||||
.spawnSettings(new SpawnSettings.Builder().build());
|
||||
}
|
||||
|
||||
private BiomeEffects createEffect(boolean white) {
|
||||
private BiomeEffects createEffect() {
|
||||
BiomeEffects.Builder builder = new BiomeEffects.Builder()
|
||||
.waterColor(white ? 0xFFFFFF : 0x000000)
|
||||
.waterFogColor(white ? 0xFFFFFF : 0x000000)
|
||||
.fogColor(white ? 0xFFFFFF : 0x000000)
|
||||
.skyColor(white ? 0xFFFFFF : 0x808080)
|
||||
.waterColor(this.white ? 0xFFFFFF : 0x000000)
|
||||
.waterFogColor(this.white ? 0xFFFFFF : 0x000000)
|
||||
.fogColor(this.white ? 0xFFFFFF : 0x000000)
|
||||
.skyColor(this.white ? 0xFFFFFF : 0x808080)
|
||||
.grassColorModifier(BiomeEffects.GrassColorModifier.NONE);
|
||||
if (white) builder.loopSound(ModSoundEvents.WHITE_VOID);
|
||||
// if (this.white) builder.loopSound(ModSoundEvents.WHITE_VOID);
|
||||
return builder.build();
|
||||
}
|
||||
}
|
||||
|
|
|
@ -19,32 +19,32 @@ import net.minecraft.world.gen.surfacebuilder.SurfaceBuilder;
|
|||
import net.minecraft.world.gen.surfacebuilder.TernarySurfaceConfig;
|
||||
|
||||
public final class ModBiomes {
|
||||
public static final RegistryKey<Biome> PERSONAL_WHITE_VOID_KEY;
|
||||
public static final RegistryKey<Biome> PUBLIC_BLACK_VOID_KEY;
|
||||
public static final RegistryKey<Biome> DUNGEON_DANGEROUS_BLACK_VOID_KEY;
|
||||
// public static final RegistryKey<Biome> PERSONAL_WHITE_VOID_KEY;
|
||||
// public static final RegistryKey<Biome> PUBLIC_BLACK_VOID_KEY;
|
||||
// public static final RegistryKey<Biome> DUNGEON_DANGEROUS_BLACK_VOID_KEY;
|
||||
public static final RegistryKey<Biome> LIMBO_KEY;
|
||||
public static final Biome WHITE_VOID_BIOME;
|
||||
public static final Biome BLACK_VOID_BIOME;
|
||||
public static final Biome DANGEROUS_BLACK_VOID_BIOME;
|
||||
// public static final Biome WHITE_VOID_BIOME;
|
||||
// public static final Biome BLACK_VOID_BIOME;
|
||||
// public static final Biome DANGEROUS_BLACK_VOID_BIOME;
|
||||
public static final Biome LIMBO_BIOME;
|
||||
|
||||
public static void init() {
|
||||
int id = 1;
|
||||
id += BuiltinRegistries.BIOME.stream().count();
|
||||
BuiltinBiomesAccessor.invokeRegister(id + 1, LIMBO_KEY, LIMBO_BIOME);
|
||||
BuiltinBiomesAccessor.invokeRegister(id + 2, PERSONAL_WHITE_VOID_KEY, WHITE_VOID_BIOME);
|
||||
BuiltinBiomesAccessor.invokeRegister(id + 3, PUBLIC_BLACK_VOID_KEY, BLACK_VOID_BIOME);
|
||||
BuiltinBiomesAccessor.invokeRegister(id + 4, DUNGEON_DANGEROUS_BLACK_VOID_KEY, DANGEROUS_BLACK_VOID_BIOME);
|
||||
// BuiltinBiomesAccessor.invokeRegister(id + 2, PERSONAL_WHITE_VOID_KEY, WHITE_VOID_BIOME);
|
||||
// BuiltinBiomesAccessor.invokeRegister(id + 3, PUBLIC_BLACK_VOID_KEY, BLACK_VOID_BIOME);
|
||||
// BuiltinBiomesAccessor.invokeRegister(id + 4, DUNGEON_DANGEROUS_BLACK_VOID_KEY, DANGEROUS_BLACK_VOID_BIOME);
|
||||
}
|
||||
|
||||
static {
|
||||
PERSONAL_WHITE_VOID_KEY = RegistryKey.of(Registry.BIOME_KEY, new Identifier("dimdoors:white_void"));
|
||||
PUBLIC_BLACK_VOID_KEY = RegistryKey.of(Registry.BIOME_KEY, new Identifier("dimdoors:black_void"));
|
||||
DUNGEON_DANGEROUS_BLACK_VOID_KEY = RegistryKey.of(Registry.BIOME_KEY, new Identifier("dimdoors:dangerous_black_void"));
|
||||
// PERSONAL_WHITE_VOID_KEY = RegistryKey.of(Registry.BIOME_KEY, new Identifier("dimdoors:white_void"));
|
||||
// PUBLIC_BLACK_VOID_KEY = RegistryKey.of(Registry.BIOME_KEY, new Identifier("dimdoors:black_void"));
|
||||
// DUNGEON_DANGEROUS_BLACK_VOID_KEY = RegistryKey.of(Registry.BIOME_KEY, new Identifier("dimdoors:dangerous_black_void"));
|
||||
LIMBO_KEY = RegistryKey.of(Registry.BIOME_KEY, new Identifier("dimdoors", "limbo"));
|
||||
WHITE_VOID_BIOME = new BlankBiomeBuilder(true, false).build();
|
||||
BLACK_VOID_BIOME = new BlankBiomeBuilder(false, false).build();
|
||||
DANGEROUS_BLACK_VOID_BIOME = new BlankBiomeBuilder(false, true).build();
|
||||
// WHITE_VOID_BIOME = new BlankBiomeBuilder(true, false).build();
|
||||
// BLACK_VOID_BIOME = new BlankBiomeBuilder(false, false).build();
|
||||
// DANGEROUS_BLACK_VOID_BIOME = new BlankBiomeBuilder(false, true).build();
|
||||
LIMBO_BIOME = new Biome.Builder()
|
||||
.category(Biome.Category.NONE)
|
||||
.depth(0.1f)
|
||||
|
|
|
@ -3,7 +3,7 @@
|
|||
"type": "dimdoors:blank",
|
||||
"biome_source": {
|
||||
"type": "minecraft:fixed",
|
||||
"biome": "dimdoors:dangerous_black_void"
|
||||
"biome": "dimdoors:limbo"
|
||||
}
|
||||
},
|
||||
"type": "dimdoors:pocket"
|
||||
|
|
|
@ -3,7 +3,7 @@
|
|||
"type": "dimdoors:blank",
|
||||
"biome_source": {
|
||||
"type": "minecraft:fixed",
|
||||
"biome": "dimdoors:white_void"
|
||||
"biome": "dimdoors:limbo"
|
||||
}
|
||||
},
|
||||
"type": "dimdoors:pocket"
|
||||
|
|
|
@ -3,7 +3,7 @@
|
|||
"type": "dimdoors:blank",
|
||||
"biome_source": {
|
||||
"type": "minecraft:fixed",
|
||||
"biome": "dimdoors:black_void"
|
||||
"biome": "dimdoors:limbo"
|
||||
}
|
||||
},
|
||||
"type": "dimdoors:pocket"
|
||||
|
|
Loading…
Reference in a new issue