Skip to content

Commit 9c69f62

Browse files
committed
Add Dragon Spiral Tower
1 parent ef30602 commit 9c69f62

17 files changed

Lines changed: 101 additions & 11 deletions

File tree

CHANGELOG.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,6 @@
11
# 1.0.0
22
- Add ModMenu Integration (Fabric Only)
3+
- Add Dragon Spiral Tower
34

45
# 1.1.3-Beta
56
- Add Haunted Mansion Shrine

common/src/main/generated/resources/data/generations_structures/advancements/generations_structures/shrines.json

Lines changed: 19 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -17,6 +17,22 @@
1717
},
1818
"trigger": "minecraft:location"
1919
},
20+
"dragon_spiral": {
21+
"conditions": {
22+
"player": [
23+
{
24+
"condition": "minecraft:entity_properties",
25+
"entity": "this",
26+
"predicate": {
27+
"location": {
28+
"structure": "generations_structures:shrines/dragon_spiral"
29+
}
30+
}
31+
}
32+
]
33+
},
34+
"trigger": "minecraft:location"
35+
},
2036
"fiery_shrine": {
2137
"conditions": {
2238
"player": [
@@ -208,6 +224,9 @@
208224
],
209225
[
210226
"haunted_mansion"
227+
],
228+
[
229+
"dragon_spiral"
211230
]
212231
],
213232
"sends_telemetry_event": true
Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,9 @@
1+
{
2+
"values": [
3+
"#minecraft:is_forest",
4+
{
5+
"id": "#c:forest",
6+
"required": false
7+
}
8+
]
9+
}

common/src/main/generated/resources/data/generations_structures/tags/worldgen/biome/has_structure/fiery_shrine.json

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -8,10 +8,6 @@
88
{
99
"id": "#c:desert",
1010
"required": false
11-
},
12-
{
13-
"id": "biomesoplenty:volcanic_plains",
14-
"required": false
1511
}
1612
]
1713
}

common/src/main/generated/resources/data/generations_structures/tags/worldgen/structure/shrines.json

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -39,6 +39,10 @@
3939
{
4040
"id": "generations_structures:shrines/haunted_mansion",
4141
"required": false
42+
},
43+
{
44+
"id": "generations_structures:shrines/dragon_spiral",
45+
"required": false
4246
}
4347
]
4448
}
Lines changed: 15 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,15 @@
1+
{
2+
"type": "minecraft:jigsaw",
3+
"biomes": "#generations_structures:has_structure/dragon_spiral",
4+
"max_distance_from_center": 80,
5+
"project_start_to_heightmap": "WORLD_SURFACE_WG",
6+
"size": 1,
7+
"spawn_overrides": {},
8+
"start_height": {
9+
"absolute": 1
10+
},
11+
"start_pool": "generations_structures:shrines/dragon_spiral",
12+
"step": "surface_structures",
13+
"terrain_adaptation": "beard_thin",
14+
"use_expansion_hack": false
15+
}
Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,14 @@
1+
{
2+
"placement": {
3+
"type": "minecraft:random_spread",
4+
"salt": 509787274,
5+
"separation": 350,
6+
"spacing": 2000
7+
},
8+
"structures": [
9+
{
10+
"structure": "generations_structures:shrines/dragon_spiral",
11+
"weight": 1
12+
}
13+
]
14+
}
Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,14 @@
1+
{
2+
"elements": [
3+
{
4+
"element": {
5+
"element_type": "minecraft:single_pool_element",
6+
"location": "generations_structures:shrines/dragon_spiral",
7+
"processors": "minecraft:empty",
8+
"projection": "rigid"
9+
},
10+
"weight": 1
11+
}
12+
],
13+
"fallback": "minecraft:empty"
14+
}

common/src/main/java/generations/gg/generations/structures/generationsstructures/structures/GenerationsStructureSettings.java

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -117,6 +117,11 @@ public class GenerationsStructureSettings {
117117
context.lookup(Registries.TEMPLATE_POOL).getOrThrow(GenerationsTemplatePools.HAUNTED_MANSION), 1,
118118
ConstantHeight.of(VerticalAnchor.absolute(1)), Heightmap.Types.WORLD_SURFACE_WG));
119119

120+
public static final ResourceKey<Structure> DRAGON_SPIRAL = register("shrines/dragon_spiral", (context) ->
121+
createJigsaw(structure(context.lookup(Registries.BIOME).getOrThrow(GenerationsBiomeTags.HAS_DRAGON_SPIRAL), TerrainAdjustment.BEARD_THIN),
122+
context.lookup(Registries.TEMPLATE_POOL).getOrThrow(GenerationsTemplatePools.DRAGON_SPIRAL), 1,
123+
ConstantHeight.of(VerticalAnchor.absolute(1)), Heightmap.Types.WORLD_SURFACE_WG));
124+
120125
public static final ResourceKey<Structure> ISLANDS = register("islands", (context) ->
121126
createJigsaw(structure(context.lookup(Registries.BIOME).getOrThrow(GenerationsBiomeTags.HAS_ISLANDS), TerrainAdjustment.NONE),
122127
context.lookup(Registries.TEMPLATE_POOL).getOrThrow(GenerationsTemplatePools.ISLANDS), 1,

common/src/main/java/generations/gg/generations/structures/generationsstructures/tags/GenerationsBiomeTags.java

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -54,6 +54,9 @@ public final class GenerationsBiomeTags {
5454
/** the tag for biomes that can have a haunted mansion */
5555
public static final TagKey<Biome> HAS_HAUNTED_MANSION = create("has_structure/haunted_mansion");
5656

57+
/** the tag for biomes that can have a dragon spiral tower */
58+
public static final TagKey<Biome> HAS_DRAGON_SPIRAL = create("has_structure/dragon_spiral");
59+
5760
/**
5861
* Creates a new {@link TagKey} for the given name.
5962
* @param name The name of the tag.

0 commit comments

Comments
 (0)