Features for GravelDesert

This commit is contained in:
Frank 2022-06-03 17:30:12 +02:00
parent 0149b17a1a
commit 4a95927e1c
2 changed files with 11 additions and 3 deletions

View file

@ -356,7 +356,8 @@ public abstract class ScatterFeatureConfig implements FeatureConfiguration {
@Override
public boolean isValidBase(BlockState state) {
return BlocksHelper.isTerrain(state);
return BlocksHelper.isTerrain(state)
|| baseState.map(s -> state.is(s.getBlock())).orElse(false);
}
@Override

View file

@ -46,8 +46,15 @@ public class CommonBlockTags {
TagAPI.BLOCKS.add(SOUL_GROUND, Blocks.SOUL_SAND, Blocks.SOUL_SOIL);
TagAPI.BLOCKS.add(IS_OBSIDIAN, Blocks.OBSIDIAN, Blocks.CRYING_OBSIDIAN);
TagAPI.BLOCKS.add(TERRAIN, Blocks.MAGMA_BLOCK);
TagAPI.BLOCKS.add(TERRAIN,
Blocks.MAGMA_BLOCK,
Blocks.GRAVEL,
Blocks.SAND,
Blocks.RED_SAND,
Blocks.GLOWSTONE,
Blocks.BONE_BLOCK
);
TagAPI.BLOCKS.addOtherTags(TERRAIN,
BlockTags.DRIPSTONE_REPLACEABLE,
BlockTags.BASE_STONE_OVERWORLD,