Not enough Zinc

- Reverted the misplaced nerf on worldgen, applied due to a previous bug in feature placement
- Critical worldgen changes now override everyones' configs
This commit is contained in:
simibubi 2020-04-08 20:33:49 +02:00
parent d1ff9f4e30
commit e2742f6fb2
2 changed files with 14 additions and 7 deletions

View File

@ -28,7 +28,7 @@ public class CWorldGen extends ConfigBase {
@Override @Override
public String getName() { public String getName() {
return "world"; return "worldgen.v" + AllWorldFeatures.forcedUpdateVersion;
} }
private static class Comments { private static class Comments {

View File

@ -1,5 +1,8 @@
package com.simibubi.create.foundation.world; package com.simibubi.create.foundation.world;
import static net.minecraft.world.biome.Biome.Category.DESERT;
import static net.minecraft.world.biome.Biome.Category.OCEAN;
import java.util.Arrays; import java.util.Arrays;
import java.util.HashMap; import java.util.HashMap;
import java.util.Map; import java.util.Map;
@ -15,13 +18,11 @@ import net.minecraftforge.registries.ForgeRegistries;
public enum AllWorldFeatures { public enum AllWorldFeatures {
COPPER_ORE(new CountedOreFeature(AllBlocks.COPPER_ORE.get(), 21, 1).between(40, 96)), COPPER_ORE(new CountedOreFeature(AllBlocks.COPPER_ORE.get(), 18, 2).between(40, 86)),
COPPER_ORE_OCEAN( COPPER_ORE_OCEAN(new CountedOreFeature(AllBlocks.COPPER_ORE.get(), 15, 4).between(20, 55).inBiomes(OCEAN)),
new CountedOreFeature(AllBlocks.COPPER_ORE.get(), 15, 4).between(20, 55).inBiomes(Biome.Category.OCEAN)),
ZINC_ORE(new CountedOreFeature(AllBlocks.ZINC_ORE.get(), 8, 1).between(55, 80)), ZINC_ORE(new CountedOreFeature(AllBlocks.ZINC_ORE.get(), 14, 4).between(15, 70)),
ZINC_ORE_DESERT( ZINC_ORE_DESERT(new CountedOreFeature(AllBlocks.ZINC_ORE.get(), 17, 5).between(10, 85).inBiomes(DESERT)),
new CountedOreFeature(AllBlocks.ZINC_ORE.get(), 10, 5).between(50, 85).inBiomes(Biome.Category.DESERT)),
LIMESTONE(new ChanceOreFeature(AllBlocks.LIMESTONE.get(), 128, 1 / 32f).between(30, 70)), LIMESTONE(new ChanceOreFeature(AllBlocks.LIMESTONE.get(), 128, 1 / 32f).between(30, 70)),
WEATHERED_LIMESTONE(new ChanceOreFeature(AllBlocks.WEATHERED_LIMESTONE.get(), 128, 1 / 32f).between(10, 30)), WEATHERED_LIMESTONE(new ChanceOreFeature(AllBlocks.WEATHERED_LIMESTONE.get(), 128, 1 / 32f).between(10, 30)),
@ -31,6 +32,12 @@ public enum AllWorldFeatures {
; ;
/**
* Increment this number if all worldgen entries should be overwritten in this update.
* Worlds from the previous version will overwrite potentially changed values with the new defaults.
*/
public static final int forcedUpdateVersion = 1;
public IFeature feature; public IFeature feature;
private Map<Biome, ConfiguredFeature<?>> featureInstances; private Map<Biome, ConfiguredFeature<?>> featureInstances;