Ore Generation Fixed

This commit is contained in:
Vos
2025-11-13 18:32:53 -06:00
parent 1237eee392
commit 9a20361fe9
9 changed files with 25 additions and 25 deletions
@@ -1,8 +1,8 @@
{ {
"type": "minecraft:ore", "type": "minecraft:ore",
"config": { "config": {
"discard_chance_on_air_exposure": 0.5, "discard_chance_on_air_exposure": 0.0,
"size": 2, "size": 4,
"targets": [ "targets": [
{ {
"state": { "state": {
@@ -1,8 +1,8 @@
{ {
"type": "minecraft:ore", "type": "minecraft:ore",
"config": { "config": {
"discard_chance_on_air_exposure": 0.5, "discard_chance_on_air_exposure": 0.0,
"size": 2, "size": 4,
"targets": [ "targets": [
{ {
"state": { "state": {
@@ -1,8 +1,8 @@
{ {
"type": "minecraft:ore", "type": "minecraft:ore",
"config": { "config": {
"discard_chance_on_air_exposure": 0.5, "discard_chance_on_air_exposure": 0.0,
"size": 2, "size": 4,
"targets": [ "targets": [
{ {
"state": { "state": {
@@ -11,12 +11,12 @@
{ {
"type": "minecraft:height_range", "type": "minecraft:height_range",
"height": { "height": {
"type": "minecraft:trapezoid", "type": "minecraft:uniform",
"max_inclusive": { "max_inclusive": {
"above_bottom": 80 "absolute": 80
}, },
"min_inclusive": { "min_inclusive": {
"above_bottom": -70 "absolute": -70
} }
} }
}, },
@@ -11,12 +11,12 @@
{ {
"type": "minecraft:height_range", "type": "minecraft:height_range",
"height": { "height": {
"type": "minecraft:trapezoid", "type": "minecraft:uniform",
"max_inclusive": { "max_inclusive": {
"above_bottom": 80 "absolute": 80
}, },
"min_inclusive": { "min_inclusive": {
"above_bottom": -70 "absolute": -70
} }
} }
}, },
@@ -11,12 +11,12 @@
{ {
"type": "minecraft:height_range", "type": "minecraft:height_range",
"height": { "height": {
"type": "minecraft:trapezoid", "type": "minecraft:uniform",
"max_inclusive": { "max_inclusive": {
"above_bottom": 80 "absolute": 80
}, },
"min_inclusive": { "min_inclusive": {
"above_bottom": -70 "absolute": -70
} }
} }
}, },
@@ -11,12 +11,12 @@
{ {
"type": "minecraft:height_range", "type": "minecraft:height_range",
"height": { "height": {
"type": "minecraft:trapezoid", "type": "minecraft:uniform",
"max_inclusive": { "max_inclusive": {
"above_bottom": 80 "absolute": 80
}, },
"min_inclusive": { "min_inclusive": {
"above_bottom": -70 "absolute": -70
} }
} }
}, },
@@ -45,10 +45,10 @@ public class ModConfiguredFeatures {
List.of(OreFeatureConfig.createTarget(endReplaceables, ModBlocks.ENDTROPY_ORE.getDefaultState())); List.of(OreFeatureConfig.createTarget(endReplaceables, ModBlocks.ENDTROPY_ORE.getDefaultState()));
register(context, ENTROPY_ORE_KEY, Feature.ORE, new OreFeatureConfig(overworldEntropyOres, 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, 2, 0.5F)); 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, 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) { 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), register(context, ENTROPY_ORE_PLACED_KEY, configuredFeatures.getOrThrow(ModConfiguredFeatures.ENTROPY_ORE_KEY),
ModOrePlacement.modifiersWithCount(12, 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), register(context, DEEPSLATE_ENTROPY_ORE_PLACED_KEY, configuredFeatures.getOrThrow(ModConfiguredFeatures.DEEPSLATE_ENTROPY_ORE_KEY),
ModOrePlacement.modifiersWithCount(12, 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), register(context, INFERNAL_ASHES_ORE_PLACED_KEY, configuredFeatures.getOrThrow(ModConfiguredFeatures.INFERNAL_ASHES_ORE_KEY),
ModOrePlacement.modifiersWithCount(30, 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), register(context, ENDTROPY_ORE_PLACED_KEY, configuredFeatures.getOrThrow(ModConfiguredFeatures.ENDTROPY_ORE_KEY),
ModOrePlacement.modifiersWithCount(12, ModOrePlacement.modifiersWithCount(12,
HeightRangePlacementModifier.trapezoid(YOffset.aboveBottom(-70), YOffset.aboveBottom(80))) HeightRangePlacementModifier.uniform(YOffset.fixed(-70), YOffset.fixed(80)))
); );
} }