First running version of BCLib
This commit is contained in:
parent
4c1e8273f6
commit
54f13847b5
7 changed files with 27 additions and 17 deletions
|
@ -14,10 +14,12 @@ public class TerrainStructureProcessor extends StructureProcessor {
|
|||
public StructureBlockInfo processBlock(LevelReader worldView, BlockPos pos, BlockPos blockPos, StructureBlockInfo structureBlockInfo, StructureBlockInfo structureBlockInfo2, StructurePlaceSettings structurePlacementData) {
|
||||
BlockPos bpos = structureBlockInfo2.pos;
|
||||
if (structureBlockInfo2.state.is(Blocks.END_STONE) && worldView.isEmptyBlock(bpos.above())) {
|
||||
BlockState top = worldView.getBiome(structureBlockInfo2.pos)
|
||||
.getGenerationSettings()
|
||||
.getSurfaceBuilderConfig()
|
||||
.getTopMaterial();
|
||||
BlockState top = Blocks.PURPLE_CONCRETE.defaultBlockState();
|
||||
//TODO: 1.18 find another way to get the Top Materiel
|
||||
// worldView.getBiome(structureBlockInfo2.pos)
|
||||
// .getGenerationSettings()
|
||||
// .getSurfaceBuilderConfig()
|
||||
// .getTopMaterial();
|
||||
return new StructureBlockInfo(bpos, top, structureBlockInfo2.nbt);
|
||||
}
|
||||
return structureBlockInfo2;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue