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) {
|
public boolean canPlaceAt(BlockState state, WorldView world, BlockPos pos) {
|
||||||
Direction direction = (Direction) state.get(FACING);
|
Direction direction = (Direction) state.get(FACING);
|
||||||
BlockPos blockPos = pos.offset(direction.getOpposite());
|
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
|
@Override
|
||||||
|
|
|
@ -254,6 +254,7 @@ public class EndBlocks {
|
||||||
public static final Block TWISTED_VINE = registerBlock("twisted_vine", new BlockVine());
|
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_SEED = registerBlock("bulb_vine_seed", new BlockBulbVineSeed());
|
||||||
public static final Block BULB_VINE = registerBlock("bulb_vine", new BlockBulbVine());
|
public static final Block BULB_VINE = registerBlock("bulb_vine", new BlockBulbVine());
|
||||||
|
public static final Block JUNGLE_VINE = registerBlock("jungle_vine", new BlockVine());
|
||||||
|
|
||||||
// Mob-Related
|
// Mob-Related
|
||||||
public static final Block SILK_MOTH_NEST = registerBlock("silk_moth_nest", new BlockSilkMothNest());
|
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 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 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 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
|
// Ceil plants
|
||||||
public static final EndFeature SMALL_JELLYSHROOM_CEIL = new EndFeature("small_jellyshroom_ceil", new SingleInvertedScatterFeature(EndBlocks.SMALL_JELLYSHROOM, 8), 8);
|
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 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 = 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 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_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, 6), 8);
|
public static final EndFeature SMALL_JELLYSHROOM_WOOD = new EndFeature("small_jellyshroom_wood", new WallPlantOnLogFeature(EndBlocks.SMALL_JELLYSHROOM, 4), 8);
|
||||||
|
|
||||||
// Water //
|
// Water //
|
||||||
public static final EndFeature BUBBLE_CORAL = new EndFeature("bubble_coral", new UnderwaterPlantFeature(EndBlocks.BUBBLE_CORAL, 6), 10);
|
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_WALL)
|
||||||
.addFeature(EndFeatures.SMALL_JELLYSHROOM_WOOD)
|
.addFeature(EndFeatures.SMALL_JELLYSHROOM_WOOD)
|
||||||
.addFeature(EndFeatures.SMALL_JELLYSHROOM_CEIL)
|
.addFeature(EndFeatures.SMALL_JELLYSHROOM_CEIL)
|
||||||
|
.addFeature(EndFeatures.JUNGLE_VINE)
|
||||||
.addFeature(EndFeatures.CHARNIA_CYAN)
|
.addFeature(EndFeatures.CHARNIA_CYAN)
|
||||||
.addFeature(EndFeatures.CHARNIA_GREEN)
|
.addFeature(EndFeatures.CHARNIA_GREEN)
|
||||||
.addFeature(EndFeatures.CHARNIA_LIGHT_BLUE)
|
.addFeature(EndFeatures.CHARNIA_LIGHT_BLUE)
|
||||||
|
|
|
@ -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" }
|
||||||
|
]
|
||||||
|
}
|
||||||
|
}
|
|
@ -521,5 +521,6 @@
|
||||||
"block.betterend.twisted_umbrella_moss": "Twisted Umbrella Moss",
|
"block.betterend.twisted_umbrella_moss": "Twisted Umbrella Moss",
|
||||||
"block.betterend.twisted_umbrella_moss_tall": "Twisted Umbrella Moss Tall",
|
"block.betterend.twisted_umbrella_moss_tall": "Twisted Umbrella Moss Tall",
|
||||||
"block.betterend.umbrella_tree_cluster": "Umbrella Tree Cluster",
|
"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"
|
||||||
}
|
}
|
||||||
|
|
|
@ -523,5 +523,6 @@
|
||||||
"block.betterend.twisted_umbrella_moss": "Закрученный зонтичный мох",
|
"block.betterend.twisted_umbrella_moss": "Закрученный зонтичный мох",
|
||||||
"block.betterend.twisted_umbrella_moss_tall": "Высокий закрученный зонтичный мох",
|
"block.betterend.twisted_umbrella_moss_tall": "Высокий закрученный зонтичный мох",
|
||||||
"block.betterend.umbrella_tree_cluster": "Кластер зонтичного дерева",
|
"block.betterend.umbrella_tree_cluster": "Кластер зонтичного дерева",
|
||||||
"block.betterend.umbrella_tree_cluster_empty": "Пустой кластер хонтичного дерева"
|
"block.betterend.umbrella_tree_cluster_empty": "Пустой кластер хонтичного дерева",
|
||||||
|
"block.betterend.jungle_vine": "Лоза джунглей"
|
||||||
}
|
}
|
|
@ -0,0 +1,3 @@
|
||||||
|
{
|
||||||
|
"defaultMaterial": "betterend:waving"
|
||||||
|
}
|
|
@ -0,0 +1 @@
|
||||||
|
{}
|
|
@ -0,0 +1,6 @@
|
||||||
|
{
|
||||||
|
"parent": "betterend:block/cross_no_distortion",
|
||||||
|
"textures": {
|
||||||
|
"texture": "betterend:block/jungle_vine_bottom"
|
||||||
|
}
|
||||||
|
}
|
|
@ -0,0 +1,6 @@
|
||||||
|
{
|
||||||
|
"parent": "betterend:block/cross_no_distortion_inverted",
|
||||||
|
"textures": {
|
||||||
|
"texture": "betterend:block/jungle_vine_bottom"
|
||||||
|
}
|
||||||
|
}
|
|
@ -0,0 +1,6 @@
|
||||||
|
{
|
||||||
|
"parent": "betterend:block/cross_no_distortion",
|
||||||
|
"textures": {
|
||||||
|
"texture": "betterend:block/jungle_vine"
|
||||||
|
}
|
||||||
|
}
|
|
@ -0,0 +1,6 @@
|
||||||
|
{
|
||||||
|
"parent": "betterend:block/cross_no_distortion_inverted",
|
||||||
|
"textures": {
|
||||||
|
"texture": "betterend:block/jungle_vine"
|
||||||
|
}
|
||||||
|
}
|
|
@ -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 |
Loading…
Add table
Add a link
Reference in a new issue