Bulb vine fix

This commit is contained in:
paulevsGitch 2020-12-17 14:39:29 +03:00
parent a926debe14
commit 6c01e8bcac
9 changed files with 26 additions and 7 deletions

View file

@ -9,6 +9,7 @@ import net.minecraft.item.ItemStack;
import net.minecraft.loot.context.LootContext;
import net.minecraft.util.math.BlockPos;
import net.minecraft.world.BlockView;
import net.minecraft.world.WorldView;
import ru.betterend.blocks.BlockProperties.TripleShape;
import ru.betterend.blocks.basis.BlockVine;
import ru.betterend.registry.EndBlocks;
@ -37,4 +38,10 @@ public class BlockBulbVine extends BlockVine {
public boolean isFertilizable(BlockView world, BlockPos pos, BlockState state, boolean isClient) {
return false;
}
@Override
public boolean canPlaceAt(BlockState state, WorldView world, BlockPos pos) {
boolean canPlace = super.canPlaceAt(state, world, pos);
return state.get(SHAPE) == TripleShape.BOTTOM ? canPlace : canPlace && world.getBlockState(pos.down()).isOf(this);
}
}

View file

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

View file

@ -3,11 +3,19 @@
"spriteMap": [
{
"sprite": "betterend:block/tenanea_flowers",
"material": "betterend:glow_all"
"material": "betterend:wave_glow_all"
},
{
"sprite": "betterend:block/tenanea_flowers_bottom",
"material": "betterend:glow_all"
"material": "betterend:wave_glow_all"
},
{
"sprite": "betterend:block/tenanea_flowers_stem",
"material": "betterend:waving"
},
{
"sprite": "betterend:block/tenanea_flowers_stem_bottom",
"material": "betterend:waving"
}
]
}

View file

@ -11,14 +11,14 @@
{
"__comment": "Box1",
"from": [ 0, 0, 0 ],
"to": [ 16, 12, 16 ],
"to": [ 16, 13, 16 ],
"faces": {
"down": { "uv": [ 0, 0, 16, 16 ], "texture": "#top", "cullface": "down" },
"up": { "uv": [ 0, 0, 16, 16 ], "texture": "#top" },
"north": { "uv": [ 0, 4, 16, 16 ], "texture": "#front", "cullface": "north" },
"south": { "uv": [ 0, 4, 16, 16 ], "texture": "#texture", "cullface": "south" },
"west": { "uv": [ 0, 4, 16, 16 ], "texture": "#texture", "cullface": "west" },
"east": { "uv": [ 0, 4, 16, 16 ], "texture": "#texture", "cullface": "east" }
"north": { "uv": [ 0, 3, 16, 16 ], "texture": "#front", "cullface": "north" },
"south": { "uv": [ 0, 3, 16, 16 ], "texture": "#texture", "cullface": "south" },
"west": { "uv": [ 0, 3, 16, 16 ], "texture": "#texture", "cullface": "west" },
"east": { "uv": [ 0, 3, 16, 16 ], "texture": "#texture", "cullface": "east" }
}
},
{

Binary file not shown.

Before

Width:  |  Height:  |  Size: 473 B

After

Width:  |  Height:  |  Size: 1.8 KiB

Before After
Before After

Binary file not shown.

Before

Width:  |  Height:  |  Size: 494 B

After

Width:  |  Height:  |  Size: 1.8 KiB

Before After
Before After

Binary file not shown.

Before

Width:  |  Height:  |  Size: 1.8 KiB

After

Width:  |  Height:  |  Size: 362 B

Before After
Before After

Binary file not shown.

Before

Width:  |  Height:  |  Size: 276 B

After

Width:  |  Height:  |  Size: 1.5 KiB

Before After
Before After