Sapling, fixes
This commit is contained in:
parent
e103e551e3
commit
1065d770bb
6 changed files with 44 additions and 2 deletions
|
@ -21,6 +21,9 @@ public class SingleInvertedScatterFeature extends InvertedScatterFeature {
|
|||
|
||||
@Override
|
||||
public boolean canGenerate(StructureWorldAccess world, Random random, BlockPos center, BlockPos blockPos, float radius) {
|
||||
if (!world.isAir(blockPos)) {
|
||||
return false;
|
||||
}
|
||||
BlockState state = block.getDefaultState();
|
||||
if (block instanceof BlockAttached) {
|
||||
state = state.with(Properties.FACING, Direction.DOWN);
|
||||
|
|
|
@ -36,7 +36,6 @@ public class JellyshroomFeature extends DefaultFeature {
|
|||
public boolean generate(StructureWorldAccess world, ChunkGenerator chunkGenerator, Random random, BlockPos pos, DefaultFeatureConfig config) {
|
||||
if (!world.getBlockState(pos.down()).getBlock().isIn(EndTags.END_GROUND)) return false;
|
||||
|
||||
BlockState log = EndBlocks.JELLYSHROOM.log.getDefaultState();
|
||||
BlockState bark = EndBlocks.JELLYSHROOM.bark.getDefaultState();
|
||||
BlockState membrane = EndBlocks.JELLYSHROOM_CAP_PURPLE.getDefaultState();
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue