Ore Generation Fixed
This commit is contained in:
+2
-2
@@ -1,8 +1,8 @@
|
||||
{
|
||||
"type": "minecraft:ore",
|
||||
"config": {
|
||||
"discard_chance_on_air_exposure": 0.5,
|
||||
"size": 2,
|
||||
"discard_chance_on_air_exposure": 0.0,
|
||||
"size": 4,
|
||||
"targets": [
|
||||
{
|
||||
"state": {
|
||||
|
||||
@@ -1,8 +1,8 @@
|
||||
{
|
||||
"type": "minecraft:ore",
|
||||
"config": {
|
||||
"discard_chance_on_air_exposure": 0.5,
|
||||
"size": 2,
|
||||
"discard_chance_on_air_exposure": 0.0,
|
||||
"size": 4,
|
||||
"targets": [
|
||||
{
|
||||
"state": {
|
||||
|
||||
@@ -1,8 +1,8 @@
|
||||
{
|
||||
"type": "minecraft:ore",
|
||||
"config": {
|
||||
"discard_chance_on_air_exposure": 0.5,
|
||||
"size": 2,
|
||||
"discard_chance_on_air_exposure": 0.0,
|
||||
"size": 4,
|
||||
"targets": [
|
||||
{
|
||||
"state": {
|
||||
|
||||
+3
-3
@@ -11,12 +11,12 @@
|
||||
{
|
||||
"type": "minecraft:height_range",
|
||||
"height": {
|
||||
"type": "minecraft:trapezoid",
|
||||
"type": "minecraft:uniform",
|
||||
"max_inclusive": {
|
||||
"above_bottom": 80
|
||||
"absolute": 80
|
||||
},
|
||||
"min_inclusive": {
|
||||
"above_bottom": -70
|
||||
"absolute": -70
|
||||
}
|
||||
}
|
||||
},
|
||||
|
||||
@@ -11,12 +11,12 @@
|
||||
{
|
||||
"type": "minecraft:height_range",
|
||||
"height": {
|
||||
"type": "minecraft:trapezoid",
|
||||
"type": "minecraft:uniform",
|
||||
"max_inclusive": {
|
||||
"above_bottom": 80
|
||||
"absolute": 80
|
||||
},
|
||||
"min_inclusive": {
|
||||
"above_bottom": -70
|
||||
"absolute": -70
|
||||
}
|
||||
}
|
||||
},
|
||||
|
||||
@@ -11,12 +11,12 @@
|
||||
{
|
||||
"type": "minecraft:height_range",
|
||||
"height": {
|
||||
"type": "minecraft:trapezoid",
|
||||
"type": "minecraft:uniform",
|
||||
"max_inclusive": {
|
||||
"above_bottom": 80
|
||||
"absolute": 80
|
||||
},
|
||||
"min_inclusive": {
|
||||
"above_bottom": -70
|
||||
"absolute": -70
|
||||
}
|
||||
}
|
||||
},
|
||||
|
||||
+3
-3
@@ -11,12 +11,12 @@
|
||||
{
|
||||
"type": "minecraft:height_range",
|
||||
"height": {
|
||||
"type": "minecraft:trapezoid",
|
||||
"type": "minecraft:uniform",
|
||||
"max_inclusive": {
|
||||
"above_bottom": 80
|
||||
"absolute": 80
|
||||
},
|
||||
"min_inclusive": {
|
||||
"above_bottom": -70
|
||||
"absolute": -70
|
||||
}
|
||||
}
|
||||
},
|
||||
|
||||
@@ -45,10 +45,10 @@ public class ModConfiguredFeatures {
|
||||
List.of(OreFeatureConfig.createTarget(endReplaceables, ModBlocks.ENDTROPY_ORE.getDefaultState()));
|
||||
|
||||
|
||||
register(context, ENTROPY_ORE_KEY, Feature.ORE, new OreFeatureConfig(overworldEntropyOres, 2, 0.5F));
|
||||
register(context, DEEPSLATE_ENTROPY_ORE_KEY, Feature.ORE, new OreFeatureConfig(overworldDeepslateEntropyOres, 2, 0.5F));
|
||||
register(context, ENTROPY_ORE_KEY, Feature.ORE, new OreFeatureConfig(overworldEntropyOres, 4, 0.0F));
|
||||
register(context, DEEPSLATE_ENTROPY_ORE_KEY, Feature.ORE, new OreFeatureConfig(overworldDeepslateEntropyOres, 4, 0.0F));
|
||||
register(context, INFERNAL_ASHES_ORE_KEY, Feature.ORE, new OreFeatureConfig(netherAshesOres, 4, 0.0F));
|
||||
register(context, ENDTROPY_ORE_KEY, Feature.ORE, new OreFeatureConfig(endEndtropyOres, 2, 0.5F));
|
||||
register(context, ENDTROPY_ORE_KEY, Feature.ORE, new OreFeatureConfig(endEndtropyOres, 4, 0.0F));
|
||||
}
|
||||
|
||||
public static RegistryKey<ConfiguredFeature<?, ?>> registerKey(String name) {
|
||||
|
||||
@@ -33,19 +33,19 @@ public class ModPlacedFeatures {
|
||||
|
||||
register(context, ENTROPY_ORE_PLACED_KEY, configuredFeatures.getOrThrow(ModConfiguredFeatures.ENTROPY_ORE_KEY),
|
||||
ModOrePlacement.modifiersWithCount(12,
|
||||
HeightRangePlacementModifier.trapezoid(YOffset.aboveBottom(-70), YOffset.aboveBottom(80)))
|
||||
HeightRangePlacementModifier.uniform(YOffset.fixed(-70), YOffset.fixed(80)))
|
||||
);
|
||||
register(context, DEEPSLATE_ENTROPY_ORE_PLACED_KEY, configuredFeatures.getOrThrow(ModConfiguredFeatures.DEEPSLATE_ENTROPY_ORE_KEY),
|
||||
ModOrePlacement.modifiersWithCount(12,
|
||||
HeightRangePlacementModifier.trapezoid(YOffset.aboveBottom(-70), YOffset.aboveBottom(80)))
|
||||
HeightRangePlacementModifier.uniform(YOffset.fixed(-70), YOffset.fixed(80)))
|
||||
);
|
||||
register(context, INFERNAL_ASHES_ORE_PLACED_KEY, configuredFeatures.getOrThrow(ModConfiguredFeatures.INFERNAL_ASHES_ORE_KEY),
|
||||
ModOrePlacement.modifiersWithCount(30,
|
||||
HeightRangePlacementModifier.trapezoid(YOffset.aboveBottom(-70), YOffset.aboveBottom(80)))
|
||||
HeightRangePlacementModifier.uniform(YOffset.fixed(-70), YOffset.fixed(80)))
|
||||
);
|
||||
register(context, ENDTROPY_ORE_PLACED_KEY, configuredFeatures.getOrThrow(ModConfiguredFeatures.ENDTROPY_ORE_KEY),
|
||||
ModOrePlacement.modifiersWithCount(12,
|
||||
HeightRangePlacementModifier.trapezoid(YOffset.aboveBottom(-70), YOffset.aboveBottom(80)))
|
||||
HeightRangePlacementModifier.uniform(YOffset.fixed(-70), YOffset.fixed(80)))
|
||||
);
|
||||
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user