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.
|
||||
*/
|
||||
public static BCLFeature makeOreFeature(ResourceLocation id, Block blockOre, Block hostBlock, int veins, int veinSize, float airDiscardChance, PlacementModifier placement, boolean rare) {
|
||||
BCLFeatureBuilder builder = BCLFeatureBuilder
|
||||
.start(id, Feature.ORE)
|
||||
.decoration(Decoration.UNDERGROUND_ORES)
|
||||
.modifier(placement)
|
||||
.squarePlacement()
|
||||
.onlyInBiome();
|
||||
BCLFeatureBuilder builder = BCLFeatureBuilder.start(id, Feature.ORE).decoration(Decoration.UNDERGROUND_ORES);
|
||||
|
||||
if (rare) {
|
||||
builder.oncePerChunks(veins);
|
||||
|
@ -111,6 +106,8 @@ public class BCLCommonFeatures {
|
|||
builder.count(veins);
|
||||
}
|
||||
|
||||
builder.modifier(placement).onlyInBiome();
|
||||
|
||||
return builder.build(new OreConfiguration(
|
||||
new BlockMatchTest(hostBlock),
|
||||
blockOre.defaultBlockState(),
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue