Skip to content

Commit

Permalink
Slightly Bury Badlands Fort
Browse files Browse the repository at this point in the history
  • Loading branch information
AViewFromTheTop committed Apr 14, 2024
1 parent d0f4f3c commit 215e32a
Show file tree
Hide file tree
Showing 14 changed files with 28 additions and 27 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -5,8 +5,8 @@
"type": "minecraft:count",
"count": {
"type": "minecraft:uniform",
"max_inclusive": 30,
"min_inclusive": 10
"max_inclusive": 5,
"min_inclusive": 0
}
},
{
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -5,8 +5,8 @@
"type": "minecraft:count",
"count": {
"type": "minecraft:uniform",
"max_inclusive": 30,
"min_inclusive": 10
"max_inclusive": 5,
"min_inclusive": 0
}
},
{
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -5,8 +5,8 @@
"type": "minecraft:count",
"count": {
"type": "minecraft:uniform",
"max_inclusive": 30,
"min_inclusive": 10
"max_inclusive": 5,
"min_inclusive": 0
}
},
{
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -5,8 +5,8 @@
"type": "minecraft:count",
"count": {
"type": "minecraft:uniform",
"max_inclusive": 30,
"min_inclusive": 10
"max_inclusive": 5,
"min_inclusive": 0
}
},
{
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -5,8 +5,8 @@
"type": "minecraft:count",
"count": {
"type": "minecraft:uniform",
"max_inclusive": 30,
"min_inclusive": 10
"max_inclusive": 5,
"min_inclusive": 0
}
},
{
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@
"input_predicate": {
"block": "minecraft:suspicious_sand",
"predicate_type": "minecraft:random_block_match",
"probability": 0.95
"probability": 0.85
},
"location_predicate": {
"predicate_type": "minecraft:always_true"
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -6,10 +6,10 @@
"size": 1,
"spawn_overrides": {},
"start_height": {
"absolute": 0
"absolute": -2
},
"start_pool": "trailiertales:badlands_fort",
"step": "surface_structures",
"terrain_adaptation": "beard_thin",
"step": "underground_structures",
"terrain_adaptation": "bury",
"use_expansion_hack": false
}
Original file line number Diff line number Diff line change
@@ -1,9 +1,9 @@
{
"placement": {
"type": "minecraft:random_spread",
"salt": 25386232,
"separation": 13,
"spacing": 16
"salt": 21338252,
"separation": 15,
"spacing": 20
},
"structures": [
{
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -20,6 +20,7 @@
import net.minecraft.world.level.block.Blocks;
import net.minecraft.world.level.levelgen.GenerationStep;
import net.minecraft.world.level.levelgen.Heightmap;
import net.minecraft.world.level.levelgen.VerticalAnchor;
import net.minecraft.world.level.levelgen.heightproviders.ConstantHeight;
import net.minecraft.world.level.levelgen.structure.Structure;
import net.minecraft.world.level.levelgen.structure.StructureSet;
Expand Down Expand Up @@ -83,7 +84,7 @@ public static void bootstrapProcessor(@NotNull BootstrapContext<StructureProcess
AlwaysTrueTest.INSTANCE, Blocks.GRAVEL.defaultBlockState()
),
new ProcessorRule(
new RandomBlockMatchTest(Blocks.SUSPICIOUS_SAND, 0.95F),
new RandomBlockMatchTest(Blocks.SUSPICIOUS_SAND, RegisterStructureProcessors.SUSPICIOUS_BLOCK_TO_NORMAL_085_CHANCE),
AlwaysTrueTest.INSTANCE, Blocks.SAND.defaultBlockState()
),
new ProcessorRule(
Expand Down Expand Up @@ -133,12 +134,12 @@ public static void bootstrap(@NotNull BootstrapContext<Structure> context) {
new JigsawStructure(
structure(
holderGetter.getOrThrow(TrailierBiomeTags.HAS_BADLANDS_FORT),
GenerationStep.Decoration.SURFACE_STRUCTURES,
TerrainAdjustment.BEARD_THIN
GenerationStep.Decoration.UNDERGROUND_STRUCTURES,
TerrainAdjustment.BURY
),
templatePool.getOrThrow(BadlandsFortGenerator.BADLANDS_FORT),
1,
ConstantHeight.ZERO,
ConstantHeight.of(VerticalAnchor.absolute(-2)),
false,
Heightmap.Types.WORLD_SURFACE_WG
)
Expand All @@ -151,7 +152,7 @@ public static void bootstrapStructureSet(@NotNull BootstrapContext<StructureSet>
BADLANDS_FORTS_KEY,
new StructureSet(
structure.getOrThrow(BADLANDS_FORT_KEY),
new RandomSpreadStructurePlacement(16, 13, RandomSpreadType.LINEAR, 25386232) // ancient city salt is 20083232
new RandomSpreadStructurePlacement(20, 15, RandomSpreadType.LINEAR, 21338252) // ancient city salt is 20083232
)
);
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -197,7 +197,7 @@ public static void bootstrapPlaced(@NotNull BootstrapContext<PlacedFeature> entr
entries,
SUSPICIOUS_DIRT_PLACED,
configuredFeatures.getOrThrow(SUSPICIOUS_DIRT),
CountPlacement.of(UniformInt.of(10, 30)),
CountPlacement.of(UniformInt.of(0, 5)),
InSquarePlacement.spread(),
HeightRangePlacement.triangle(VerticalAnchor.absolute(-64), VerticalAnchor.absolute(128)),
BiomeFilter.biome()
Expand All @@ -207,7 +207,7 @@ public static void bootstrapPlaced(@NotNull BootstrapContext<PlacedFeature> entr
entries,
SUSPICIOUS_SAND_PLACED,
configuredFeatures.getOrThrow(SUSPICIOUS_SAND),
CountPlacement.of(UniformInt.of(10, 30)),
CountPlacement.of(UniformInt.of(0, 5)),
InSquarePlacement.spread(),
HeightRangePlacement.triangle(VerticalAnchor.absolute(-64), VerticalAnchor.absolute(128)),
BiomeFilter.biome()
Expand All @@ -217,7 +217,7 @@ public static void bootstrapPlaced(@NotNull BootstrapContext<PlacedFeature> entr
entries,
SUSPICIOUS_RED_SAND_PLACED,
configuredFeatures.getOrThrow(SUSPICIOUS_RED_SAND),
CountPlacement.of(UniformInt.of(10, 30)),
CountPlacement.of(UniformInt.of(0, 5)),
InSquarePlacement.spread(),
HeightRangePlacement.triangle(VerticalAnchor.absolute(-64), VerticalAnchor.absolute(128)),
BiomeFilter.biome()
Expand All @@ -227,7 +227,7 @@ public static void bootstrapPlaced(@NotNull BootstrapContext<PlacedFeature> entr
entries,
SUSPICIOUS_GRAVEL_PLACED,
configuredFeatures.getOrThrow(SUSPICIOUS_GRAVEL),
CountPlacement.of(UniformInt.of(10, 30)),
CountPlacement.of(UniformInt.of(0, 5)),
InSquarePlacement.spread(),
HeightRangePlacement.triangle(VerticalAnchor.absolute(-64), VerticalAnchor.absolute(128)),
BiomeFilter.biome()
Expand All @@ -237,7 +237,7 @@ public static void bootstrapPlaced(@NotNull BootstrapContext<PlacedFeature> entr
entries,
SUSPICIOUS_CLAY_PLACED,
configuredFeatures.getOrThrow(SUSPICIOUS_CLAY),
CountPlacement.of(UniformInt.of(10, 30)),
CountPlacement.of(UniformInt.of(0, 5)),
InSquarePlacement.spread(),
HeightRangePlacement.triangle(VerticalAnchor.absolute(-64), VerticalAnchor.absolute(128)),
BiomeFilter.biome()
Expand Down
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.

1 comment on commit 215e32a

@AViewFromTheTop
Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I slightly buried the Badlands Fort structure.

Please sign in to comment.