Jungle vine
This commit is contained in:
parent
1116daeb1f
commit
71a3e88b62
16 changed files with 61 additions and 5 deletions
|
@ -59,7 +59,8 @@ public class BlockSmallJellyshroom extends BlockAttached implements IRenderTypea
|
|||
public boolean canPlaceAt(BlockState state, WorldView world, BlockPos pos) {
|
||||
Direction direction = (Direction) state.get(FACING);
|
||||
BlockPos blockPos = pos.offset(direction.getOpposite());
|
||||
return sideCoversSmallSquare(world, blockPos, direction) && world.getBlockState(blockPos).isOpaque();
|
||||
BlockState support = world.getBlockState(blockPos);
|
||||
return sideCoversSmallSquare(world, blockPos, direction) && support.isOpaque() && support.getLuminance() == 0;
|
||||
}
|
||||
|
||||
@Override
|
||||
|
|
|
@ -254,6 +254,7 @@ public class EndBlocks {
|
|||
public static final Block TWISTED_VINE = registerBlock("twisted_vine", new BlockVine());
|
||||
public static final Block BULB_VINE_SEED = registerBlock("bulb_vine_seed", new BlockBulbVineSeed());
|
||||
public static final Block BULB_VINE = registerBlock("bulb_vine", new BlockBulbVine());
|
||||
public static final Block JUNGLE_VINE = registerBlock("jungle_vine", new BlockVine());
|
||||
|
||||
// Mob-Related
|
||||
public static final Block SILK_MOTH_NEST = registerBlock("silk_moth_nest", new BlockSilkMothNest());
|
||||
|
|
|
@ -89,6 +89,7 @@ public class EndFeatures {
|
|||
public static final EndFeature DENSE_VINE = new EndFeature("dense_vine", new VineFeature(EndBlocks.DENSE_VINE, 24), 3);
|
||||
public static final EndFeature TWISTED_VINE = new EndFeature("twisted_vine", new VineFeature(EndBlocks.TWISTED_VINE, 24), 3);
|
||||
public static final EndFeature BULB_VINE = new EndFeature("bulb_vine", new VineFeature(EndBlocks.BULB_VINE, 24), 5);
|
||||
public static final EndFeature JUNGLE_VINE = new EndFeature("jungle_vine", new VineFeature(EndBlocks.JUNGLE_VINE, 24), 5);
|
||||
|
||||
// Ceil plants
|
||||
public static final EndFeature SMALL_JELLYSHROOM_CEIL = new EndFeature("small_jellyshroom_ceil", new SingleInvertedScatterFeature(EndBlocks.SMALL_JELLYSHROOM, 8), 8);
|
||||
|
@ -104,8 +105,8 @@ public class EndFeatures {
|
|||
public static final EndFeature TWISTED_MOSS_WOOD = new EndFeature("twisted_moss_wood", new WallPlantOnLogFeature(EndBlocks.TWISTED_MOSS, 6), 25);
|
||||
public static final EndFeature BULB_MOSS = new EndFeature("bulb_moss", new WallPlantFeature(EndBlocks.BULB_MOSS, 6), 1);
|
||||
public static final EndFeature BULB_MOSS_WOOD = new EndFeature("bulb_moss_wood", new WallPlantOnLogFeature(EndBlocks.BULB_MOSS, 6), 15);
|
||||
public static final EndFeature SMALL_JELLYSHROOM_WALL = new EndFeature("small_jellyshroom_wall", new WallPlantFeature(EndBlocks.SMALL_JELLYSHROOM, 6), 4);
|
||||
public static final EndFeature SMALL_JELLYSHROOM_WOOD = new EndFeature("small_jellyshroom_wood", new WallPlantOnLogFeature(EndBlocks.SMALL_JELLYSHROOM, 6), 8);
|
||||
public static final EndFeature SMALL_JELLYSHROOM_WALL = new EndFeature("small_jellyshroom_wall", new WallPlantFeature(EndBlocks.SMALL_JELLYSHROOM, 4), 4);
|
||||
public static final EndFeature SMALL_JELLYSHROOM_WOOD = new EndFeature("small_jellyshroom_wood", new WallPlantOnLogFeature(EndBlocks.SMALL_JELLYSHROOM, 4), 8);
|
||||
|
||||
// Water //
|
||||
public static final EndFeature BUBBLE_CORAL = new EndFeature("bubble_coral", new UnderwaterPlantFeature(EndBlocks.BUBBLE_CORAL, 6), 10);
|
||||
|
|
|
@ -21,6 +21,7 @@ public class BiomeUmbrellaJungle extends EndBiome {
|
|||
.addFeature(EndFeatures.SMALL_JELLYSHROOM_WALL)
|
||||
.addFeature(EndFeatures.SMALL_JELLYSHROOM_WOOD)
|
||||
.addFeature(EndFeatures.SMALL_JELLYSHROOM_CEIL)
|
||||
.addFeature(EndFeatures.JUNGLE_VINE)
|
||||
.addFeature(EndFeatures.CHARNIA_CYAN)
|
||||
.addFeature(EndFeatures.CHARNIA_GREEN)
|
||||
.addFeature(EndFeatures.CHARNIA_LIGHT_BLUE)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue