Blocks such as fences, glass panes etc. connect to blocks with custom models

Upvotes: 7
Issue description

In the attached image, the fence is connected to the carpet block, despite the fact that it's not a full block. The issue is caused by custom blocks not overriding the getBlockFaceShape method from, which returns SOLID by default. This piece of code fixes the issue by returning the UNDEFINED shape instead.

public BlockFaceShape getBlockFaceShape(IBlockAccess worldIn, IBlockState state, BlockPos pos, EnumFacing face) {
	return BlockFaceShape.UNDEFINED;

I think it would be nice to be able to chose the face shape for each face of the block, but it could be difficult to implement for blocks with rotation.

Issue comments

We will add an option to select block face shape in MCreator 1.9.1. I am closing this ticket.

Donate to MCreator

By donating to developers you can speed up development, as with more resources, we can dedicate more time to MCreator. It is a free project made by developers working on it in their free time.