Back to debug placement
This commit is contained in:
parent
44b0bcd776
commit
3ee539bc9d
@ -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.game.MBlocks
|
||||||
import ru.dbotthepony.mc.otm.registry.data.MWorldGenFeatures
|
import ru.dbotthepony.mc.otm.registry.data.MWorldGenFeatures
|
||||||
import ru.dbotthepony.mc.otm.worldgen.feature.BlackHolePlacerFeature
|
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.EnormousPlacement
|
||||||
import ru.dbotthepony.mc.otm.worldgen.placement.EllipsoidPlacement
|
import ru.dbotthepony.mc.otm.worldgen.placement.EllipsoidPlacement
|
||||||
import ru.dbotthepony.mc.otm.worldgen.placement.WormPlacement
|
import ru.dbotthepony.mc.otm.worldgen.placement.WormPlacement
|
||||||
@ -58,8 +59,8 @@ fun registerConfiguredFeatures(context: BootstrapContext<ConfiguredFeature<*, *>
|
|||||||
)
|
)
|
||||||
|
|
||||||
context.register(ConfiguredFeatures.TRITANIUM_ORE, ConfiguredFeature(Feature.ORE, OreConfiguration(target, 9)))
|
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(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(MWorldGenFeatures.DEBUG_PLACEMENT, DebugPlacerFeature.Config(MBlocks.TRITANIUM_ORE.defaultBlockState())))
|
||||||
}
|
}
|
||||||
|
|
||||||
run {
|
run {
|
||||||
@ -121,7 +122,7 @@ fun registerPlacedFeatures(context: BootstrapContext<PlacedFeature>) {
|
|||||||
children = listOf(
|
children = listOf(
|
||||||
RarityFilter.onAverageOnceEvery(300),
|
RarityFilter.onAverageOnceEvery(300),
|
||||||
InSquarePlacement.spread(),
|
InSquarePlacement.spread(),
|
||||||
HeightRangePlacement.of(StandardDeviationHeightProvider(VerticalAnchor.absolute(-40), 15.0)),
|
HeightRangePlacement.of(StandardDeviationHeightProvider(VerticalAnchor.absolute(120), 15.0)),
|
||||||
WormPlacement(
|
WormPlacement(
|
||||||
length = UniformInt.of(120, 400),
|
length = UniformInt.of(120, 400),
|
||||||
turnRateXY = WormPlacement.normalDistributedTurnRate(10f),
|
turnRateXY = WormPlacement.normalDistributedTurnRate(10f),
|
||||||
@ -134,13 +135,13 @@ fun registerPlacedFeatures(context: BootstrapContext<PlacedFeature>) {
|
|||||||
maxTravelDown = 16,
|
maxTravelDown = 16,
|
||||||
),
|
),
|
||||||
EllipsoidPlacement(
|
EllipsoidPlacement(
|
||||||
count = UniformInt.of(15, 30),
|
count = UniformInt.of(4, 7),
|
||||||
xLength = ConstantFloat.of(14f),
|
xLength = ConstantFloat.of(6f),
|
||||||
yLength = ConstantFloat.of(14f),
|
yLength = ConstantFloat.of(6f),
|
||||||
zLength = ConstantFloat.of(14f),
|
zLength = ConstantFloat.of(6f),
|
||||||
x = ClampedNormalFloat.of(0f, 0.4f, -1f, 1f),
|
x = ClampedNormalFloat.of(0f, 0.2f, -1f, 1f),
|
||||||
y = ClampedNormalFloat.of(0f, 0.4f, -1f, 1f),
|
y = ClampedNormalFloat.of(0f, 0.2f, -1f, 1f),
|
||||||
z = ClampedNormalFloat.of(0f, 0.4f, -1f, 1f),
|
z = ClampedNormalFloat.of(0f, 0.2f, -1f, 1f),
|
||||||
)
|
)
|
||||||
)
|
)
|
||||||
)
|
)
|
||||||
|
Loading…
Reference in New Issue
Block a user