Silk moth nest

This commit is contained in:
paulevsGitch 2020-12-17 12:03:12 +03:00
parent 1ff3d93404
commit 4910c0568e
20 changed files with 122 additions and 11 deletions

View file

@ -45,7 +45,7 @@ public class SulphurHillFeature extends DefaultFeature {
int max = radius + 4;
Mutable mut = new Mutable();
BlockState rock = EndBlocks.SULPHURIC_ROCK.stone.getDefaultState();
BlockState brimstone = EndBlocks.BRIMSTONE.getDefaultState().with(BlockProperties.ACTIVATED, true);
BlockState brimstone = EndBlocks.BRIMSTONE.getDefaultState().with(BlockProperties.ACTIVE, true);
for (int x = min; x < max; x++) {
int x2 = x * x;
int px = pos.getX() + x;

View file

@ -156,7 +156,7 @@ public class SulphuricCaveFeature extends DefaultFeature {
private void placeBrimstone(StructureWorldAccess world, BlockPos pos, Random random) {
BlockState state = getBrimstone(world, pos);
BlocksHelper.setWithoutUpdate(world, pos, state);
if (state.get(BlockProperties.ACTIVATED)) {
if (state.get(BlockProperties.ACTIVE)) {
makeShards(world, pos, random);
}
}
@ -164,7 +164,7 @@ public class SulphuricCaveFeature extends DefaultFeature {
private BlockState getBrimstone(StructureWorldAccess world, BlockPos pos) {
for (Direction dir: BlocksHelper.DIRECTIONS) {
if (world.getBlockState(pos.offset(dir)).isOf(Blocks.WATER)) {
return EndBlocks.BRIMSTONE.getDefaultState().with(BlockProperties.ACTIVATED, true);
return EndBlocks.BRIMSTONE.getDefaultState().with(BlockProperties.ACTIVE, true);
}
}
return EndBlocks.BRIMSTONE.getDefaultState();

View file

@ -176,7 +176,7 @@ public class SulphuricLakeFeature extends DefaultFeature {
private void placeBrimstone(StructureWorldAccess world, BlockPos pos, Random random) {
BlockState state = getBrimstone(world, pos);
BlocksHelper.setWithoutUpdate(world, pos, state);
if (state.get(BlockProperties.ACTIVATED)) {
if (state.get(BlockProperties.ACTIVE)) {
makeShards(world, pos, random);
}
}
@ -184,7 +184,7 @@ public class SulphuricLakeFeature extends DefaultFeature {
private BlockState getBrimstone(StructureWorldAccess world, BlockPos pos) {
for (Direction dir: BlocksHelper.DIRECTIONS) {
if (world.getBlockState(pos.offset(dir)).isOf(Blocks.WATER)) {
return EndBlocks.BRIMSTONE.getDefaultState().with(BlockProperties.ACTIVATED, true);
return EndBlocks.BRIMSTONE.getDefaultState().with(BlockProperties.ACTIVE, true);
}
}
return EndBlocks.BRIMSTONE.getDefaultState();