From d4af3ac2e4c1dc9467537c6c02a27d4fae0765a9 Mon Sep 17 00:00:00 2001 From: Yusuf Arfan Ismail Date: Sun, 26 Nov 2023 11:52:08 +0000 Subject: [PATCH] Issues fixed with ore gen --- forge/CHANGELOG.md | 4 + forge/gradle.properties | 2 +- .../103d9f3f36b01595f1aa5172191e60eff02e6924 | 9 +- .../biome_modifier/add_aqumarine_ore.json | 6 ++ .../biome_modifier/add_enderite_ore.json | 6 ++ .../biome_modifier/add_graphite_ore.json | 6 ++ .../biome_modifier/add_imperium_ore.json | 6 ++ .../forge/biome_modifier/add_rainbow_ore.json | 6 ++ .../forge/biome_modifier/add_ruby_ore.json | 6 ++ .../biome_modifier/add_sapphire_ore.json | 6 ++ .../datagen/world/ModWorldGenProvider.kt | 3 + .../worldgen/ModBiomeModifiers.kt | 24 ++--- forge/src/main/resources/META-INF/mods.toml | 15 +-- neoforge/CHANGELOG.md | 2 +- .../datagen/world/ModWorldGenProvider.kt | 4 +- .../worldgen/ModBiomesModifiers.kt | 100 ++++++++++++++++++ .../worldgen/ModPlacedFeatures.kt | 2 +- .../src/main/resources/META-INF/mods.toml | 14 ++- 18 files changed, 193 insertions(+), 28 deletions(-) create mode 100644 forge/src/generated/resources/data/temporalsmith/forge/biome_modifier/add_aqumarine_ore.json create mode 100644 forge/src/generated/resources/data/temporalsmith/forge/biome_modifier/add_enderite_ore.json create mode 100644 forge/src/generated/resources/data/temporalsmith/forge/biome_modifier/add_graphite_ore.json create mode 100644 forge/src/generated/resources/data/temporalsmith/forge/biome_modifier/add_imperium_ore.json create mode 100644 forge/src/generated/resources/data/temporalsmith/forge/biome_modifier/add_rainbow_ore.json create mode 100644 forge/src/generated/resources/data/temporalsmith/forge/biome_modifier/add_ruby_ore.json create mode 100644 forge/src/generated/resources/data/temporalsmith/forge/biome_modifier/add_sapphire_ore.json rename {neoforge => forge}/src/main/kotlin/io/github/realyusufismail/temporalsmith/worldgen/ModBiomeModifiers.kt (83%) create mode 100644 neoforge/src/main/kotlin/io/github/realyusufismail/temporalsmith/worldgen/ModBiomesModifiers.kt diff --git a/forge/CHANGELOG.md b/forge/CHANGELOG.md index 5b4dc0aa..f6d62d79 100644 --- a/forge/CHANGELOG.md +++ b/forge/CHANGELOG.md @@ -2,6 +2,10 @@ All notable changes to this project will be documented in this file. +# [1.20.1-1.0.7.beta7] - 2023-11-26 + +### Fixed issue with ore generation. Now all ores will generate in the overworld. + # [1.20.1-1.0.7.beta6] - 2023-11-25 ### Added support for the new dimension called ChronoRealm. To activate build a normal portal using enderite block and ignite useing the enderite sword. Documentation will be added in the future. diff --git a/forge/gradle.properties b/forge/gradle.properties index 3371032e..a66858f4 100644 --- a/forge/gradle.properties +++ b/forge/gradle.properties @@ -2,7 +2,7 @@ kotlin.code.style=official org.gradle.jvmargs=-Xmx3G org.gradle.daemon=false -modVersion = 1.20.1-1.0.7.beta6 +modVersion = 1.20.1-1.0.7.beta7 mcVersion = 1.20.1 projectId = 480779 modId = temporalsmith diff --git a/forge/src/generated/resources/.cache/103d9f3f36b01595f1aa5172191e60eff02e6924 b/forge/src/generated/resources/.cache/103d9f3f36b01595f1aa5172191e60eff02e6924 index 99d258f2..21c4af59 100644 --- a/forge/src/generated/resources/.cache/103d9f3f36b01595f1aa5172191e60eff02e6924 +++ b/forge/src/generated/resources/.cache/103d9f3f36b01595f1aa5172191e60eff02e6924 @@ -1,4 +1,11 @@ -// 1.20.1 2023-11-24T11:59:52.3927342 Registries +// 1.20.1 2023-11-26T11:49:26.914369 Registries +40e43a07a21eb92762a71d83f82b794e55d2405d data/temporalsmith/forge/biome_modifier/add_aqumarine_ore.json +6b1bd1f5192827b4c1b935ef43bc8344e7ed9b6f data/temporalsmith/forge/biome_modifier/add_enderite_ore.json +07cff8acbbd023a45fcae7acb9d757807d793fe2 data/temporalsmith/forge/biome_modifier/add_graphite_ore.json +dc4a1c8776b49c89d1efac51d73fb85642985706 data/temporalsmith/forge/biome_modifier/add_imperium_ore.json +0b2e8d21bfb83dfa1d0d687c625dbbebb0c79d1a data/temporalsmith/forge/biome_modifier/add_rainbow_ore.json +404fb81a6363d0760da316e8e2399fae1624c4e2 data/temporalsmith/forge/biome_modifier/add_ruby_ore.json +6161e883a542612fdfb52f4370104673ab2e1bca data/temporalsmith/forge/biome_modifier/add_sapphire_ore.json 52e07796b3598ae2784352122ffaaf4500ac1385 data/temporalsmith/worldgen/configured_feature/aqumarine_ore.json 06d2f6fc59b416a218d7f1908e39c8e8cd38f0cd data/temporalsmith/worldgen/configured_feature/enderite_ore.json 200476c7e225de0670ae88f408d09f3539f4a637 data/temporalsmith/worldgen/configured_feature/graphite_ore.json diff --git a/forge/src/generated/resources/data/temporalsmith/forge/biome_modifier/add_aqumarine_ore.json b/forge/src/generated/resources/data/temporalsmith/forge/biome_modifier/add_aqumarine_ore.json new file mode 100644 index 00000000..14f4ac59 --- /dev/null +++ b/forge/src/generated/resources/data/temporalsmith/forge/biome_modifier/add_aqumarine_ore.json @@ -0,0 +1,6 @@ +{ + "type": "forge:add_features", + "biomes": "#minecraft:is_overworld", + "features": "temporalsmith:aqumarine_ore", + "step": "underground_ores" +} \ No newline at end of file diff --git a/forge/src/generated/resources/data/temporalsmith/forge/biome_modifier/add_enderite_ore.json b/forge/src/generated/resources/data/temporalsmith/forge/biome_modifier/add_enderite_ore.json new file mode 100644 index 00000000..76770db3 --- /dev/null +++ b/forge/src/generated/resources/data/temporalsmith/forge/biome_modifier/add_enderite_ore.json @@ -0,0 +1,6 @@ +{ + "type": "forge:add_features", + "biomes": "#minecraft:is_end", + "features": "temporalsmith:enderite_ore", + "step": "underground_ores" +} \ No newline at end of file diff --git a/forge/src/generated/resources/data/temporalsmith/forge/biome_modifier/add_graphite_ore.json b/forge/src/generated/resources/data/temporalsmith/forge/biome_modifier/add_graphite_ore.json new file mode 100644 index 00000000..9ace2c72 --- /dev/null +++ b/forge/src/generated/resources/data/temporalsmith/forge/biome_modifier/add_graphite_ore.json @@ -0,0 +1,6 @@ +{ + "type": "forge:add_features", + "biomes": "#minecraft:is_overworld", + "features": "temporalsmith:graphite_ore", + "step": "underground_ores" +} \ No newline at end of file diff --git a/forge/src/generated/resources/data/temporalsmith/forge/biome_modifier/add_imperium_ore.json b/forge/src/generated/resources/data/temporalsmith/forge/biome_modifier/add_imperium_ore.json new file mode 100644 index 00000000..c867323c --- /dev/null +++ b/forge/src/generated/resources/data/temporalsmith/forge/biome_modifier/add_imperium_ore.json @@ -0,0 +1,6 @@ +{ + "type": "forge:add_features", + "biomes": "#minecraft:is_overworld", + "features": "temporalsmith:imperium_ore", + "step": "underground_ores" +} \ No newline at end of file diff --git a/forge/src/generated/resources/data/temporalsmith/forge/biome_modifier/add_rainbow_ore.json b/forge/src/generated/resources/data/temporalsmith/forge/biome_modifier/add_rainbow_ore.json new file mode 100644 index 00000000..a9eecf4b --- /dev/null +++ b/forge/src/generated/resources/data/temporalsmith/forge/biome_modifier/add_rainbow_ore.json @@ -0,0 +1,6 @@ +{ + "type": "forge:add_features", + "biomes": "#minecraft:is_overworld", + "features": "temporalsmith:rainbow_ore", + "step": "underground_ores" +} \ No newline at end of file diff --git a/forge/src/generated/resources/data/temporalsmith/forge/biome_modifier/add_ruby_ore.json b/forge/src/generated/resources/data/temporalsmith/forge/biome_modifier/add_ruby_ore.json new file mode 100644 index 00000000..3e5b9764 --- /dev/null +++ b/forge/src/generated/resources/data/temporalsmith/forge/biome_modifier/add_ruby_ore.json @@ -0,0 +1,6 @@ +{ + "type": "forge:add_features", + "biomes": "#minecraft:is_overworld", + "features": "temporalsmith:ruby_ore", + "step": "underground_ores" +} \ No newline at end of file diff --git a/forge/src/generated/resources/data/temporalsmith/forge/biome_modifier/add_sapphire_ore.json b/forge/src/generated/resources/data/temporalsmith/forge/biome_modifier/add_sapphire_ore.json new file mode 100644 index 00000000..c6b02e12 --- /dev/null +++ b/forge/src/generated/resources/data/temporalsmith/forge/biome_modifier/add_sapphire_ore.json @@ -0,0 +1,6 @@ +{ + "type": "forge:add_features", + "biomes": "#minecraft:is_overworld", + "features": "temporalsmith:sapphire_ore", + "step": "underground_ores" +} \ No newline at end of file diff --git a/forge/src/main/kotlin/io/github/realyusufismail/temporalsmith/datagen/world/ModWorldGenProvider.kt b/forge/src/main/kotlin/io/github/realyusufismail/temporalsmith/datagen/world/ModWorldGenProvider.kt index 8e644faf..eab0eec7 100644 --- a/forge/src/main/kotlin/io/github/realyusufismail/temporalsmith/datagen/world/ModWorldGenProvider.kt +++ b/forge/src/main/kotlin/io/github/realyusufismail/temporalsmith/datagen/world/ModWorldGenProvider.kt @@ -19,6 +19,7 @@ package io.github.realyusufismail.temporalsmith.datagen.world import io.github.realyusufismail.temporalsmith.TemporalSmith.ArmorAndToolsMod.MOD_ID +import io.github.realyusufismail.temporalsmith.worldgen.ModBiomeModifiers import io.github.realyusufismail.temporalsmith.worldgen.ModConfiguredFeatures import io.github.realyusufismail.temporalsmith.worldgen.ModPlacedFeatures import java.util.concurrent.CompletableFuture @@ -27,6 +28,7 @@ import net.minecraft.core.RegistrySetBuilder import net.minecraft.core.registries.Registries import net.minecraft.data.PackOutput import net.minecraftforge.common.data.DatapackBuiltinEntriesProvider +import net.minecraftforge.registries.ForgeRegistries class ModWorldGenProvider( output: PackOutput, @@ -35,4 +37,5 @@ class ModWorldGenProvider( RegistrySetBuilder() .add(Registries.CONFIGURED_FEATURE, ModConfiguredFeatures::bootstrap) .add(Registries.PLACED_FEATURE, ModPlacedFeatures::bootstrap) + .add(ForgeRegistries.Keys.BIOME_MODIFIERS, ModBiomeModifiers::bootStrap) ) : DatapackBuiltinEntriesProvider(output, registries, builder, mutableSetOf(MOD_ID)) diff --git a/neoforge/src/main/kotlin/io/github/realyusufismail/temporalsmith/worldgen/ModBiomeModifiers.kt b/forge/src/main/kotlin/io/github/realyusufismail/temporalsmith/worldgen/ModBiomeModifiers.kt similarity index 83% rename from neoforge/src/main/kotlin/io/github/realyusufismail/temporalsmith/worldgen/ModBiomeModifiers.kt rename to forge/src/main/kotlin/io/github/realyusufismail/temporalsmith/worldgen/ModBiomeModifiers.kt index 382d4073..4eb4b8fc 100644 --- a/neoforge/src/main/kotlin/io/github/realyusufismail/temporalsmith/worldgen/ModBiomeModifiers.kt +++ b/forge/src/main/kotlin/io/github/realyusufismail/temporalsmith/worldgen/ModBiomeModifiers.kt @@ -18,7 +18,7 @@ */ package io.github.realyusufismail.temporalsmith.worldgen -import io.github.realyusufismail.temporalsmith.TemporalSmith.TemporalSmith.MOD_ID +import io.github.realyusufismail.temporalsmith.TemporalSmith.ArmorAndToolsMod.MOD_ID import net.minecraft.core.HolderSet import net.minecraft.core.registries.Registries import net.minecraft.data.worldgen.BootstapContext @@ -26,9 +26,9 @@ import net.minecraft.resources.ResourceKey import net.minecraft.resources.ResourceLocation import net.minecraft.tags.BiomeTags import net.minecraft.world.level.levelgen.GenerationStep -import net.neoforged.neoforge.common.world.BiomeModifier -import net.neoforged.neoforge.common.world.BiomeModifiers -import net.neoforged.neoforge.registries.NeoForgeRegistries +import net.minecraftforge.common.world.BiomeModifier +import net.minecraftforge.common.world.ForgeBiomeModifiers +import net.minecraftforge.registries.ForgeRegistries object ModBiomeModifiers { val ADD_RUBY_ORE: ResourceKey = registerKey("add_ruby_ore") @@ -45,49 +45,49 @@ object ModBiomeModifiers { context.register( ADD_RUBY_ORE, - BiomeModifiers.AddFeaturesBiomeModifier( + ForgeBiomeModifiers.AddFeaturesBiomeModifier( biomes.getOrThrow(BiomeTags.IS_OVERWORLD), HolderSet.direct(placedFeatures.getOrThrow(ModPlacedFeatures.RUBY_ORE)), GenerationStep.Decoration.UNDERGROUND_ORES)) context.register( ADD_SAPPHIRE_ORE, - BiomeModifiers.AddFeaturesBiomeModifier( + ForgeBiomeModifiers.AddFeaturesBiomeModifier( biomes.getOrThrow(BiomeTags.IS_OVERWORLD), HolderSet.direct(placedFeatures.getOrThrow(ModPlacedFeatures.SAPPHIRE_ORE)), GenerationStep.Decoration.UNDERGROUND_ORES)) context.register( ADD_GRAPHITE_ORE, - BiomeModifiers.AddFeaturesBiomeModifier( + ForgeBiomeModifiers.AddFeaturesBiomeModifier( biomes.getOrThrow(BiomeTags.IS_OVERWORLD), HolderSet.direct(placedFeatures.getOrThrow(ModPlacedFeatures.GRAPHITE_ORE)), GenerationStep.Decoration.UNDERGROUND_ORES)) context.register( ADD_AQUMARINE_ORE, - BiomeModifiers.AddFeaturesBiomeModifier( + ForgeBiomeModifiers.AddFeaturesBiomeModifier( biomes.getOrThrow(BiomeTags.IS_OVERWORLD), HolderSet.direct(placedFeatures.getOrThrow(ModPlacedFeatures.AQUMARINE_ORE)), GenerationStep.Decoration.UNDERGROUND_ORES)) context.register( ADD_RAINBOW_ORE, - BiomeModifiers.AddFeaturesBiomeModifier( + ForgeBiomeModifiers.AddFeaturesBiomeModifier( biomes.getOrThrow(BiomeTags.IS_OVERWORLD), HolderSet.direct(placedFeatures.getOrThrow(ModPlacedFeatures.RAINBOW_ORE)), GenerationStep.Decoration.UNDERGROUND_ORES)) context.register( ADD_IMPERIUM_ORE, - BiomeModifiers.AddFeaturesBiomeModifier( + ForgeBiomeModifiers.AddFeaturesBiomeModifier( biomes.getOrThrow(BiomeTags.IS_OVERWORLD), HolderSet.direct(placedFeatures.getOrThrow(ModPlacedFeatures.IMPERIUM_ORE)), GenerationStep.Decoration.UNDERGROUND_ORES)) context.register( ADD_ENDERITE_ORE, - BiomeModifiers.AddFeaturesBiomeModifier( + ForgeBiomeModifiers.AddFeaturesBiomeModifier( biomes.getOrThrow(BiomeTags.IS_END), HolderSet.direct(placedFeatures.getOrThrow(ModPlacedFeatures.ENDERITE_ORE)), GenerationStep.Decoration.UNDERGROUND_ORES)) @@ -95,6 +95,6 @@ object ModBiomeModifiers { private fun registerKey(name: String): ResourceKey { return ResourceKey.create( - NeoForgeRegistries.Keys.BIOME_MODIFIERS, ResourceLocation(MOD_ID, name)) + ForgeRegistries.Keys.BIOME_MODIFIERS, ResourceLocation(MOD_ID, name)) } } diff --git a/forge/src/main/resources/META-INF/mods.toml b/forge/src/main/resources/META-INF/mods.toml index 0b817e88..79c55401 100644 --- a/forge/src/main/resources/META-INF/mods.toml +++ b/forge/src/main/resources/META-INF/mods.toml @@ -4,16 +4,19 @@ license = "Apache 2.0" #mandatory issueTrackerURL = "https://github.com/RealYusufIsmail-Mc-Mods/TemporalSmith" [[mods]] modId = "temporalsmith" -version = "1.20.1-1.0.7.beta6" +version = "1.20.1-1.0.7.beta7" displayName = "TemporalSmith: Aetheric Arsenal Expansion" logoFile = "logo.png" updateJSONURL = "https://forge.curseupdate.com/480779/temporalsmith" description =''' - Descend into the boundless realms of TemporalSmith, where time intertwines with the craft of the Aetheric Arsenal. - Unleash the power of enchanted swords and tools forged beyond the constraints of time. Explore mystical dimensions, each brimming with unique challenges and treasures. - Elevate your Minecraft experience with a fusion of temporal mastery, otherworldly landscapes, and an expansive array of armaments. - The journey awaits; delve into the time-woven secrets of TemporalSmith. (A lot of stuff to be added) - ''' +Descend into the boundless realms of TemporalSmith, where time intertwines with the craft of the Aetheric Arsenal. + +Unleash the power of enchanted swords and tools forged beyond the constraints of time. Explore mystical dimensions, each brimming with unique challenges and treasures. + +Elevate your Minecraft experience with a fusion of temporal mastery, otherworldly landscapes, and an expansive array of armaments. + +The journey awaits; delve into the time-woven secrets of TemporalSmith. (A lot of stuff to be added) +''' # A dependency - use the . to indicate dependency for a specific modid. Dependencies are optional. [[dependencies.temporalsmith]] modId = "forge" diff --git a/neoforge/CHANGELOG.md b/neoforge/CHANGELOG.md index 1b050513..d86fa020 100644 --- a/neoforge/CHANGELOG.md +++ b/neoforge/CHANGELOG.md @@ -2,7 +2,7 @@ All notable changes to this project will be documented in this file. -# [1.20.2-2.0.0.beta9] - 2023-11-24 +# [1.20.2-2.0.0.beta9] - 2023-11-26 ### Ore gen has now been tested and fixed. All ores should now generate properly. diff --git a/neoforge/src/main/kotlin/io/github/realyusufismail/temporalsmith/datagen/world/ModWorldGenProvider.kt b/neoforge/src/main/kotlin/io/github/realyusufismail/temporalsmith/datagen/world/ModWorldGenProvider.kt index a6577bf6..e2e86096 100644 --- a/neoforge/src/main/kotlin/io/github/realyusufismail/temporalsmith/datagen/world/ModWorldGenProvider.kt +++ b/neoforge/src/main/kotlin/io/github/realyusufismail/temporalsmith/datagen/world/ModWorldGenProvider.kt @@ -19,7 +19,7 @@ package io.github.realyusufismail.temporalsmith.datagen.world import io.github.realyusufismail.temporalsmith.TemporalSmith.TemporalSmith.MOD_ID -import io.github.realyusufismail.temporalsmith.worldgen.ModBiomeModifiers +import io.github.realyusufismail.temporalsmith.worldgen.ModBiomesModifiers import io.github.realyusufismail.temporalsmith.worldgen.ModConfiguredFeatures import io.github.realyusufismail.temporalsmith.worldgen.ModPlacedFeatures import java.util.concurrent.CompletableFuture @@ -37,5 +37,5 @@ class ModWorldGenProvider( RegistrySetBuilder() .add(Registries.CONFIGURED_FEATURE, ModConfiguredFeatures::bootstrap) .add(Registries.PLACED_FEATURE, ModPlacedFeatures::bootstrap) - .add(NeoForgeRegistries.Keys.BIOME_MODIFIERS, ModBiomeModifiers::bootStrap) + .add(NeoForgeRegistries.Keys.BIOME_MODIFIERS, ModBiomesModifiers::bootStrap) ) : DatapackBuiltinEntriesProvider(output, registries, builder, mutableSetOf(MOD_ID)) diff --git a/neoforge/src/main/kotlin/io/github/realyusufismail/temporalsmith/worldgen/ModBiomesModifiers.kt b/neoforge/src/main/kotlin/io/github/realyusufismail/temporalsmith/worldgen/ModBiomesModifiers.kt new file mode 100644 index 00000000..32fa6afe --- /dev/null +++ b/neoforge/src/main/kotlin/io/github/realyusufismail/temporalsmith/worldgen/ModBiomesModifiers.kt @@ -0,0 +1,100 @@ +/* + * Copyright 2023 RealYusufIsmail. + * + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * + * you may not use this file except in compliance with the License. + * + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +package io.github.realyusufismail.temporalsmith.worldgen + +import io.github.realyusufismail.temporalsmith.TemporalSmith.TemporalSmith.MOD_ID +import net.minecraft.core.HolderSet +import net.minecraft.core.registries.Registries +import net.minecraft.data.worldgen.BootstapContext +import net.minecraft.resources.ResourceKey +import net.minecraft.resources.ResourceLocation +import net.minecraft.tags.BiomeTags +import net.minecraft.world.level.levelgen.GenerationStep +import net.neoforged.neoforge.common.world.BiomeModifier +import net.neoforged.neoforge.common.world.BiomeModifiers +import net.neoforged.neoforge.registries.NeoForgeRegistries + +object ModBiomesModifiers { + val ADD_RUBY_ORE: ResourceKey = registerKey("add_ruby_ore") + val ADD_SAPPHIRE_ORE: ResourceKey = registerKey("add_sapphire_ore") + val ADD_GRAPHITE_ORE: ResourceKey = registerKey("add_graphite_ore") + val ADD_AQUMARINE_ORE: ResourceKey = registerKey("add_aqumarine_ore") + val ADD_RAINBOW_ORE: ResourceKey = registerKey("add_rainbow_ore") + val ADD_IMPERIUM_ORE: ResourceKey = registerKey("add_imperium_ore") + val ADD_ENDERITE_ORE: ResourceKey = registerKey("add_enderite_ore") + + fun bootStrap(context: BootstapContext) { + val placedFeatures = context.lookup(Registries.PLACED_FEATURE) + val biomes = context.lookup(Registries.BIOME) + + context.register( + ADD_RUBY_ORE, + BiomeModifiers.AddFeaturesBiomeModifier( + biomes.getOrThrow(BiomeTags.IS_OVERWORLD), + HolderSet.direct(placedFeatures.getOrThrow(ModPlacedFeatures.RUBY_ORE)), + GenerationStep.Decoration.UNDERGROUND_ORES)) + + context.register( + ADD_SAPPHIRE_ORE, + BiomeModifiers.AddFeaturesBiomeModifier( + biomes.getOrThrow(BiomeTags.IS_OVERWORLD), + HolderSet.direct(placedFeatures.getOrThrow(ModPlacedFeatures.SAPPHIRE_ORE)), + GenerationStep.Decoration.UNDERGROUND_ORES)) + + context.register( + ADD_GRAPHITE_ORE, + BiomeModifiers.AddFeaturesBiomeModifier( + biomes.getOrThrow(BiomeTags.IS_OVERWORLD), + HolderSet.direct(placedFeatures.getOrThrow(ModPlacedFeatures.GRAPHITE_ORE)), + GenerationStep.Decoration.UNDERGROUND_ORES)) + + context.register( + ADD_AQUMARINE_ORE, + BiomeModifiers.AddFeaturesBiomeModifier( + biomes.getOrThrow(BiomeTags.IS_OVERWORLD), + HolderSet.direct(placedFeatures.getOrThrow(ModPlacedFeatures.AQUMARINE_ORE)), + GenerationStep.Decoration.UNDERGROUND_ORES)) + + context.register( + ADD_RAINBOW_ORE, + BiomeModifiers.AddFeaturesBiomeModifier( + biomes.getOrThrow(BiomeTags.IS_OVERWORLD), + HolderSet.direct(placedFeatures.getOrThrow(ModPlacedFeatures.RAINBOW_ORE)), + GenerationStep.Decoration.UNDERGROUND_ORES)) + + context.register( + ADD_IMPERIUM_ORE, + BiomeModifiers.AddFeaturesBiomeModifier( + biomes.getOrThrow(BiomeTags.IS_OVERWORLD), + HolderSet.direct(placedFeatures.getOrThrow(ModPlacedFeatures.IMPERIUM_ORE)), + GenerationStep.Decoration.UNDERGROUND_ORES)) + + context.register( + ADD_ENDERITE_ORE, + BiomeModifiers.AddFeaturesBiomeModifier( + biomes.getOrThrow(BiomeTags.IS_END), + HolderSet.direct(placedFeatures.getOrThrow(ModPlacedFeatures.ENDERITE_ORE)), + GenerationStep.Decoration.UNDERGROUND_ORES)) + } + + private fun registerKey(name: String): ResourceKey { + return ResourceKey.create( + NeoForgeRegistries.Keys.BIOME_MODIFIERS, ResourceLocation(MOD_ID, name)) + } +} diff --git a/neoforge/src/main/kotlin/io/github/realyusufismail/temporalsmith/worldgen/ModPlacedFeatures.kt b/neoforge/src/main/kotlin/io/github/realyusufismail/temporalsmith/worldgen/ModPlacedFeatures.kt index 474e595a..a3de6330 100644 --- a/neoforge/src/main/kotlin/io/github/realyusufismail/temporalsmith/worldgen/ModPlacedFeatures.kt +++ b/neoforge/src/main/kotlin/io/github/realyusufismail/temporalsmith/worldgen/ModPlacedFeatures.kt @@ -77,7 +77,7 @@ object ModPlacedFeatures { ModOrePlacement.commonOrePlacement( 4, HeightRangePlacement.uniform( - VerticalAnchor.absolute(-64), VerticalAnchor.absolute(20)))) + VerticalAnchor.absolute(-64), VerticalAnchor.absolute(40)))) register( context, diff --git a/neoforge/src/main/resources/META-INF/mods.toml b/neoforge/src/main/resources/META-INF/mods.toml index 426ebb4e..328709fd 100644 --- a/neoforge/src/main/resources/META-INF/mods.toml +++ b/neoforge/src/main/resources/META-INF/mods.toml @@ -9,9 +9,15 @@ displayName = "TemporalSmith: Aetheric Arsenal Expansion" logoFile = "logo.png" updateJSONURL = "https://forge.curseupdate.com/480779/temporalsmith" displayURL = "https://www.curseforge.com/minecraft/mc-mods/temporalsmith" -description = ''' -Descend into the boundless realms of TemporalSmith, where time intertwines with the craft of the Aetheric Arsenal. Unleash the power of enchanted swords and tools forged beyond the constraints of time. Explore mystical dimensions, each brimming with unique challenges and treasures. Elevate your Minecraft experience with a fusion of temporal mastery, otherworldly landscapes, and an expansive array of armaments. The journey awaits; delve into the time-woven secrets of TemporalSmith. (A lot of stuff to be added)''' +description =''' +Descend into the boundless realms of TemporalSmith, where time intertwines with the craft of the Aetheric Arsenal. +Unleash the power of enchanted swords and tools forged beyond the constraints of time. Explore mystical dimensions, each brimming with unique challenges and treasures. + +Elevate your Minecraft experience with a fusion of temporal mastery, otherworldly landscapes, and an expansive array of armaments. + +The journey awaits; delve into the time-woven secrets of TemporalSmith. (A lot of stuff to be added) +''' # A dependency - use the . to indicate dependency for a specific modid. Dependencies are optional. [[dependencies.temporalsmith]] modId = "neoforge" @@ -30,6 +36,6 @@ side = "BOTH" [[dependencies.temporalsmith]] modId = "realyusufismailcore" mandatory = true -versionRange = "[1.20.2-1.1.2,)" +versionRange = "[1.20.2-1.1.1,)" ordering = "NONE" -side = "BOTH" \ No newline at end of file +side = "BOTH"