diff --git a/build.gradle b/build.gradle index d534d6b2..8450f382 100644 --- a/build.gradle +++ b/build.gradle @@ -101,6 +101,7 @@ dependencies { //runtimeOnly fg.deobf("curse.maven:configured-457570:4011355") runtimeOnly fg.deobf("curse.maven:config-menus-forge-544048:4672356") runtimeOnly fg.deobf("curse.maven:neat-238372:4580940") + runtimeOnly fg.deobf("curse.maven:advanced-xray-256256:4840340") } diff --git a/src/generated/resources/data/sullysmod/worldgen/placed_feature/artifact_gravel.json b/src/generated/resources/data/sullysmod/worldgen/placed_feature/artifact_gravel.json index 463d47c8..d6a06d29 100644 --- a/src/generated/resources/data/sullysmod/worldgen/placed_feature/artifact_gravel.json +++ b/src/generated/resources/data/sullysmod/worldgen/placed_feature/artifact_gravel.json @@ -1,15 +1,19 @@ { "feature": "sullysmod:artifact_gravel", "placement": [ + { + "type": "minecraft:count", + "count": 30 + }, { "type": "minecraft:in_square" }, { "type": "minecraft:height_range", "height": { - "type": "minecraft:trapezoid", + "type": "minecraft:uniform", "max_inclusive": { - "absolute": 62 + "absolute": 50 }, "min_inclusive": { "above_bottom": 0 @@ -23,10 +27,6 @@ "blocks": "minecraft:gravel" } }, - { - "type": "minecraft:count", - "count": 40 - }, { "type": "minecraft:biome" } diff --git a/src/main/java/com/uraneptus/sullysmod/common/levelgen/ArtifactGravelFeature.java b/src/main/java/com/uraneptus/sullysmod/common/levelgen/ArtifactGravelFeature.java index f7208180..d7551bdc 100644 --- a/src/main/java/com/uraneptus/sullysmod/common/levelgen/ArtifactGravelFeature.java +++ b/src/main/java/com/uraneptus/sullysmod/common/levelgen/ArtifactGravelFeature.java @@ -29,6 +29,7 @@ public boolean place(FeaturePlaceContext context) { context.level().getBlockEntity(blockpos, BlockEntityType.BRUSHABLE_BLOCK).ifPresent(brushableBlockEntity -> { brushableBlockEntity.setLootTable(SMBuiltInLootTables.GRAVEL_PETRIFIED_SAPLING_TREE, blockpos.asLong()); }); + worldgenlevel.setBlock(blockpos, blockstate, 2); } return true; } else { diff --git a/src/main/java/com/uraneptus/sullysmod/data/server/builtin/SMPlacedFeaturesProvider.java b/src/main/java/com/uraneptus/sullysmod/data/server/builtin/SMPlacedFeaturesProvider.java index 4e091ec0..98bf0387 100644 --- a/src/main/java/com/uraneptus/sullysmod/data/server/builtin/SMPlacedFeaturesProvider.java +++ b/src/main/java/com/uraneptus/sullysmod/data/server/builtin/SMPlacedFeaturesProvider.java @@ -4,6 +4,7 @@ import com.uraneptus.sullysmod.core.registry.SMBlocks; import net.minecraft.core.Direction; import net.minecraft.core.Holder; +import net.minecraft.core.Vec3i; import net.minecraft.core.registries.Registries; import net.minecraft.data.worldgen.BootstapContext; import net.minecraft.data.worldgen.placement.PlacementUtils; @@ -30,8 +31,9 @@ public static void create(BootstapContext context) { )); register(context, SMFeatureDefinitions.PLACED_ARTIFACT_GRAVEL, addFeaturePlacement(context, SMFeatureDefinitions.CONFIGURED_ARTIFACT_GRAVEL, InSquarePlacement.spread(), - HeightRangePlacement.triangle(VerticalAnchor.bottom(), VerticalAnchor.absolute(62)), + HeightRangePlacement.uniform(VerticalAnchor.bottom(), VerticalAnchor.absolute(62)), BlockPredicateFilter.forPredicate(BlockPredicate.matchesBlocks(Blocks.GRAVEL)), + BlockPredicateFilter.forPredicate(BlockPredicate.matchesBlocks(new Vec3i(0, 1, 0), Blocks.AIR)), CountPlacement.of(40), BiomeFilter.biome() ));