Skip to content

Commit

Permalink
updated ancient temple generation and terrain adaptation
Browse files Browse the repository at this point in the history
  • Loading branch information
NewJumper committed Jul 19, 2024
1 parent 32b7c98 commit 1ae551a
Show file tree
Hide file tree
Showing 3 changed files with 13 additions and 6 deletions.
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
// 1.21 2024-07-16T00:18:32.9159165 Registries
// 1.21 2024-07-19T12:45:32.8915827 Registries
65c8c67a4ec7ef0ce6846fb2f4d921cc6ceb02e2 data/deeperdarker/damage_type/bite.json
0b65c61bd1e5086d0f3685566cc6cecf6e324516 data/deeperdarker/damage_type/ring.json
15881d75b17d8e2c97fd9a222b284aa19b999fe4 data/deeperdarker/dimension/otherside.json
Expand Down Expand Up @@ -111,7 +111,7 @@ b76ec202988b0b3d258ab73fe3f480253e5da1c7 data/deeperdarker/worldgen/placed_featu
f7672526cd82d29a8ae5c9547070bb9de5e97e6f data/deeperdarker/worldgen/placed_feature/surface_gloomslate.json
4121bc1a914770058ee57bd355aef36b55bc2cfa data/deeperdarker/worldgen/placed_feature/surface_sculk_stone.json
9fcc2562a92e1fdba73076e083a9f2cddf68052e data/deeperdarker/worldgen/processor_list/ancient_temple_degradation.json
4ef315a28c5f97bd5e0f32e12cde14af9d3c6076 data/deeperdarker/worldgen/structure/ancient_temple.json
c5587c8d8d08f65a19a99acd990b6c364498932e data/deeperdarker/worldgen/structure/ancient_temple.json
5531900d4c117383f9f6e85932b7eadb371a18ca data/deeperdarker/worldgen/structure_set/ancient_temples.json
3a4cebd37b0a138ef1be1a09b2f199037622c535 data/deeperdarker/worldgen/template_pool/ancient_temple/basement.json
caad2e0fbe3036a10814ffee38770e6664c61c74 data/deeperdarker/worldgen/template_pool/ancient_temple/basement/aisles.json
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -5,9 +5,16 @@
"size": 7,
"spawn_overrides": {},
"start_height": {
"absolute": 18
"type": "minecraft:uniform",
"max_inclusive": {
"above_bottom": 28
},
"min_inclusive": {
"above_bottom": 18
}
},
"start_pool": "deeperdarker:ancient_temple/basement",
"step": "underground_structures",
"terrain_adaptation": "beard_box",
"use_expansion_hack": false
}
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@
import net.minecraft.world.level.biome.Biome;
import net.minecraft.world.level.levelgen.GenerationStep;
import net.minecraft.world.level.levelgen.VerticalAnchor;
import net.minecraft.world.level.levelgen.heightproviders.ConstantHeight;
import net.minecraft.world.level.levelgen.heightproviders.UniformHeight;
import net.minecraft.world.level.levelgen.structure.Structure;
import net.minecraft.world.level.levelgen.structure.TerrainAdjustment;
import net.minecraft.world.level.levelgen.structure.pools.StructureTemplatePool;
Expand All @@ -23,11 +23,11 @@ public static void bootstrap(BootstrapContext<Structure> context) {
HolderGetter<Biome> biomes = context.lookup(Registries.BIOME);
HolderGetter<StructureTemplatePool> pools = context.lookup(Registries.TEMPLATE_POOL);

context.register(ANCIENT_TEMPLE, new JigsawStructure(structure(biomes.getOrThrow(DDTags.Misc.HAS_ANCIENT_TEMPLE)), pools.getOrThrow(DDPools.TEMPLE_START), 7, ConstantHeight.of(VerticalAnchor.absolute(18)), false));
context.register(ANCIENT_TEMPLE, new JigsawStructure(structure(biomes.getOrThrow(DDTags.Misc.HAS_ANCIENT_TEMPLE)), pools.getOrThrow(DDPools.TEMPLE_START), 7, UniformHeight.of(VerticalAnchor.aboveBottom(18), VerticalAnchor.aboveBottom(28)), false));
}

private static Structure.StructureSettings structure(HolderSet<Biome> biomes) {
return new Structure.StructureSettings.Builder(biomes).generationStep(GenerationStep.Decoration.UNDERGROUND_STRUCTURES).terrainAdapation(TerrainAdjustment.NONE).build();
return new Structure.StructureSettings.Builder(biomes).generationStep(GenerationStep.Decoration.UNDERGROUND_STRUCTURES).terrainAdapation(TerrainAdjustment.BEARD_BOX).build();
}

private static ResourceKey<Structure> createKey(String name) {
Expand Down

0 comments on commit 1ae551a

Please sign in to comment.