From 0d250dea2f9c810dd48fd8feac24b6d851db8c6f Mon Sep 17 00:00:00 2001 From: YuRaNnNzZZ Date: Thu, 14 Nov 2024 21:46:19 +0300 Subject: [PATCH] =?UTF-8?q?=D1=8D=D1=82=D0=BE=20=D0=BD=D0=B5=20=D1=80?= =?UTF-8?q?=D1=83=D0=B4=D0=B0,=20=D1=8D=D1=82=D0=BE=20=D0=B2=D0=BE=D1=80?= =?UTF-8?q?=D0=BB=D0=B4=D0=B3=D0=B5=D0=BD.=20=D0=BF=D0=BE=D1=82=D0=B2?= =?UTF-8?q?=D0=B8=D0=BA=D0=B0=D0=BB=20=D0=B7=D0=BD=D0=B0=D1=87=D0=B5=D0=BD?= =?UTF-8?q?=D0=B8=D1=8F=20(=D0=BD=D0=BE=20=D1=88=D0=B0=D0=BD=D1=81=20?= =?UTF-8?q?=D0=BD=D0=B0=D0=B2=D0=B5=D1=80=D0=BD=D0=BE=D0=B5=20=D0=B2=D1=81?= =?UTF-8?q?=D1=91=20=D1=80=D0=B0=D0=B2=D0=BD=D0=BE=20=D1=83=D0=BC=D0=B5?= =?UTF-8?q?=D0=BD=D1=8C=D1=88=D0=B8=D1=82=D1=8C=20=D0=BD=D0=B0=D0=B4=D0=BE?= =?UTF-8?q?)?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../mc/otm/datagen/{OreGen.kt => WorldGen.kt} | 13 ++----------- 1 file changed, 2 insertions(+), 11 deletions(-) rename src/data/kotlin/ru/dbotthepony/mc/otm/datagen/{OreGen.kt => WorldGen.kt} (94%) diff --git a/src/data/kotlin/ru/dbotthepony/mc/otm/datagen/OreGen.kt b/src/data/kotlin/ru/dbotthepony/mc/otm/datagen/WorldGen.kt similarity index 94% rename from src/data/kotlin/ru/dbotthepony/mc/otm/datagen/OreGen.kt rename to src/data/kotlin/ru/dbotthepony/mc/otm/datagen/WorldGen.kt index 8d3b4e32d..4bb408e4a 100644 --- a/src/data/kotlin/ru/dbotthepony/mc/otm/datagen/OreGen.kt +++ b/src/data/kotlin/ru/dbotthepony/mc/otm/datagen/WorldGen.kt @@ -26,8 +26,6 @@ import ru.dbotthepony.mc.otm.worldgen.feature.BlackHolePlacerConfiguration private object ConfiguredFeatures { val TRITANIUM_ORE = key("tritanium_ore") - - // TODO: ЭТО НЕ РУДА val BLACK_HOLE = key("black_hole") private fun key(name: String): ResourceKey> { @@ -45,17 +43,13 @@ fun registerConfiguredFeatures(context: BootstrapContext ) context.register(ConfiguredFeatures.TRITANIUM_ORE, ConfiguredFeature(Feature.ORE, OreConfiguration(target, 9))) - - // TODO: ЭТО НЕ РУДА context.register(ConfiguredFeatures.BLACK_HOLE, ConfiguredFeature(MWorldGenFeatures.BLACK_HOLE_PLACER, - BlackHolePlacerConfiguration(0.005f, Decimal(2048), Decimal(2048 + 8192)))) + BlackHolePlacerConfiguration(0.001f, Decimal(125_000), Decimal(500_000)))) } private object PlacedFeatures { val NORMAL_TRITANIUM = key("normal_tritanium") val DEEP_TRITANIUM = key("deep_tritanium") - - // TODO: ЭТО НЕ РУДА val BLACK_HOLE = key("black_hole") private fun key(name: String): ResourceKey { @@ -85,8 +79,8 @@ fun registerPlacedFeatures(context: BootstrapContext) { ) )) - // TODO: ЭТО НЕ РУДА val blackHole = configured.getOrThrow(ConfiguredFeatures.BLACK_HOLE) + context.register(PlacedFeatures.BLACK_HOLE, PlacedFeature( blackHole, listOf( @@ -98,8 +92,6 @@ fun registerPlacedFeatures(context: BootstrapContext) { private object BiomeModifiers { val TRITANIUM_ORE = key("tritanium_ore") - - // TODO: ЭТО НЕ РУДА val BLACK_HOLE = key("black_hole") private fun key(name: String): ResourceKey { @@ -123,7 +115,6 @@ fun registerBiomeModifiers(context: BootstrapContext) { ) ) - // TODO: ЭТО НЕ РУДА context.register( BiomeModifiers.BLACK_HOLE, net.neoforged.neoforge.common.world.BiomeModifiers.AddFeaturesBiomeModifier(