From 3ee539bc9d965ba31c64d3c607480448927e0c30 Mon Sep 17 00:00:00 2001 From: DBotThePony Date: Sun, 9 Mar 2025 13:57:31 +0700 Subject: [PATCH] Back to debug placement --- .../ru/dbotthepony/mc/otm/datagen/WorldGen.kt | 21 ++++++++++--------- 1 file changed, 11 insertions(+), 10 deletions(-) diff --git a/src/data/kotlin/ru/dbotthepony/mc/otm/datagen/WorldGen.kt b/src/data/kotlin/ru/dbotthepony/mc/otm/datagen/WorldGen.kt index de3fe4cbd..43d292e1d 100644 --- a/src/data/kotlin/ru/dbotthepony/mc/otm/datagen/WorldGen.kt +++ b/src/data/kotlin/ru/dbotthepony/mc/otm/datagen/WorldGen.kt @@ -32,6 +32,7 @@ import ru.dbotthepony.mc.otm.worldgen.placement.StandardDeviationHeightProvider import ru.dbotthepony.mc.otm.registry.game.MBlocks import ru.dbotthepony.mc.otm.registry.data.MWorldGenFeatures import ru.dbotthepony.mc.otm.worldgen.feature.BlackHolePlacerFeature +import ru.dbotthepony.mc.otm.worldgen.feature.DebugPlacerFeature import ru.dbotthepony.mc.otm.worldgen.placement.EnormousPlacement import ru.dbotthepony.mc.otm.worldgen.placement.EllipsoidPlacement import ru.dbotthepony.mc.otm.worldgen.placement.WormPlacement @@ -58,8 +59,8 @@ fun registerConfiguredFeatures(context: BootstrapContext ) context.register(ConfiguredFeatures.TRITANIUM_ORE, ConfiguredFeature(Feature.ORE, OreConfiguration(target, 9))) - context.register(ConfiguredFeatures.TRITANIUM_ORE_SMALL, ConfiguredFeature(Feature.REPLACE_SINGLE_BLOCK, ReplaceBlockConfiguration(target))) - //context.register(ConfiguredFeatures.TRITANIUM_ORE_SMALL, ConfiguredFeature(MWorldGenFeatures.DEBUG_PLACEMENT, DebugPlacerFeature.Config(MBlocks.TRITANIUM_ORE.defaultBlockState()))) + //context.register(ConfiguredFeatures.TRITANIUM_ORE_SMALL, ConfiguredFeature(Feature.REPLACE_SINGLE_BLOCK, ReplaceBlockConfiguration(target))) + context.register(ConfiguredFeatures.TRITANIUM_ORE_SMALL, ConfiguredFeature(MWorldGenFeatures.DEBUG_PLACEMENT, DebugPlacerFeature.Config(MBlocks.TRITANIUM_ORE.defaultBlockState()))) } run { @@ -121,7 +122,7 @@ fun registerPlacedFeatures(context: BootstrapContext) { children = listOf( RarityFilter.onAverageOnceEvery(300), InSquarePlacement.spread(), - HeightRangePlacement.of(StandardDeviationHeightProvider(VerticalAnchor.absolute(-40), 15.0)), + HeightRangePlacement.of(StandardDeviationHeightProvider(VerticalAnchor.absolute(120), 15.0)), WormPlacement( length = UniformInt.of(120, 400), turnRateXY = WormPlacement.normalDistributedTurnRate(10f), @@ -134,13 +135,13 @@ fun registerPlacedFeatures(context: BootstrapContext) { maxTravelDown = 16, ), EllipsoidPlacement( - count = UniformInt.of(15, 30), - xLength = ConstantFloat.of(14f), - yLength = ConstantFloat.of(14f), - zLength = ConstantFloat.of(14f), - x = ClampedNormalFloat.of(0f, 0.4f, -1f, 1f), - y = ClampedNormalFloat.of(0f, 0.4f, -1f, 1f), - z = ClampedNormalFloat.of(0f, 0.4f, -1f, 1f), + count = UniformInt.of(4, 7), + xLength = ConstantFloat.of(6f), + yLength = ConstantFloat.of(6f), + zLength = ConstantFloat.of(6f), + x = ClampedNormalFloat.of(0f, 0.2f, -1f, 1f), + y = ClampedNormalFloat.of(0f, 0.2f, -1f, 1f), + z = ClampedNormalFloat.of(0f, 0.2f, -1f, 1f), ) ) )