Ore placement fix
This commit is contained in:
parent
1f246b7d7d
commit
663b0ef062
1 changed files with 3 additions and 6 deletions
|
@ -97,12 +97,7 @@ public class BCLCommonFeatures {
|
||||||
* @return new BCLFeature instance.
|
* @return new BCLFeature instance.
|
||||||
*/
|
*/
|
||||||
public static BCLFeature makeOreFeature(ResourceLocation id, Block blockOre, Block hostBlock, int veins, int veinSize, float airDiscardChance, PlacementModifier placement, boolean rare) {
|
public static BCLFeature makeOreFeature(ResourceLocation id, Block blockOre, Block hostBlock, int veins, int veinSize, float airDiscardChance, PlacementModifier placement, boolean rare) {
|
||||||
BCLFeatureBuilder builder = BCLFeatureBuilder
|
BCLFeatureBuilder builder = BCLFeatureBuilder.start(id, Feature.ORE).decoration(Decoration.UNDERGROUND_ORES);
|
||||||
.start(id, Feature.ORE)
|
|
||||||
.decoration(Decoration.UNDERGROUND_ORES)
|
|
||||||
.modifier(placement)
|
|
||||||
.squarePlacement()
|
|
||||||
.onlyInBiome();
|
|
||||||
|
|
||||||
if (rare) {
|
if (rare) {
|
||||||
builder.oncePerChunks(veins);
|
builder.oncePerChunks(veins);
|
||||||
|
@ -111,6 +106,8 @@ public class BCLCommonFeatures {
|
||||||
builder.count(veins);
|
builder.count(veins);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
builder.modifier(placement).onlyInBiome();
|
||||||
|
|
||||||
return builder.build(new OreConfiguration(
|
return builder.build(new OreConfiguration(
|
||||||
new BlockMatchTest(hostBlock),
|
new BlockMatchTest(hostBlock),
|
||||||
blockOre.defaultBlockState(),
|
blockOre.defaultBlockState(),
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue