Jungle vine

This commit is contained in:
paulevsGitch 2020-12-25 17:29:06 +03:00
parent 1116daeb1f
commit 71a3e88b62
16 changed files with 61 additions and 5 deletions

View file

@ -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

View file

@ -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());

View file

@ -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);

View file

@ -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)

View file

@ -0,0 +1,16 @@
{
"variants": {
"shape=top": [
{ "model": "betterend:block/jungle_vine_middle_1" },
{ "model": "betterend:block/jungle_vine_middle_2" }
],
"shape=middle": [
{ "model": "betterend:block/jungle_vine_middle_1" },
{ "model": "betterend:block/jungle_vine_middle_2" }
],
"shape=bottom": [
{ "model": "betterend:block/jungle_vine_bottom_1" },
{ "model": "betterend:block/jungle_vine_bottom_2" }
]
}
}

View file

@ -521,5 +521,6 @@
"block.betterend.twisted_umbrella_moss": "Twisted Umbrella Moss",
"block.betterend.twisted_umbrella_moss_tall": "Twisted Umbrella Moss Tall",
"block.betterend.umbrella_tree_cluster": "Umbrella Tree Cluster",
"block.betterend.umbrella_tree_cluster_empty": "Empty Umbrella Tree Cluster"
"block.betterend.umbrella_tree_cluster_empty": "Empty Umbrella Tree Cluster",
"block.betterend.jungle_vine": "Jungle Vine"
}

View file

@ -523,5 +523,6 @@
"block.betterend.twisted_umbrella_moss": "Закрученный зонтичный мох",
"block.betterend.twisted_umbrella_moss_tall": "Высокий закрученный зонтичный мох",
"block.betterend.umbrella_tree_cluster": "Кластер зонтичного дерева",
"block.betterend.umbrella_tree_cluster_empty": "Пустой кластер хонтичного дерева"
"block.betterend.umbrella_tree_cluster_empty": "Пустой кластер хонтичного дерева",
"block.betterend.jungle_vine": "Лоза джунглей"
}

View file

@ -0,0 +1,3 @@
{
"defaultMaterial": "betterend:waving"
}

View file

@ -0,0 +1,6 @@
{
"parent": "betterend:block/cross_no_distortion",
"textures": {
"texture": "betterend:block/jungle_vine_bottom"
}
}

View file

@ -0,0 +1,6 @@
{
"parent": "betterend:block/cross_no_distortion_inverted",
"textures": {
"texture": "betterend:block/jungle_vine_bottom"
}
}

View file

@ -0,0 +1,6 @@
{
"parent": "betterend:block/cross_no_distortion",
"textures": {
"texture": "betterend:block/jungle_vine"
}
}

View file

@ -0,0 +1,6 @@
{
"parent": "betterend:block/cross_no_distortion_inverted",
"textures": {
"texture": "betterend:block/jungle_vine"
}
}

View file

@ -0,0 +1,6 @@
{
"parent": "item/generated",
"textures": {
"layer0": "betterend:block/jungle_vine_bottom"
}
}

Binary file not shown.

After

Width:  |  Height:  |  Size: 503 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 1.7 KiB