Option to adjust bounding box to block offset

Upvotes: 0
Issue description

This option would move the bounding box of a block to match its offset type. Example code (not tested in 1.14)

public VoxelShape getShape(BlockState state, IBlockReader world, BlockPos pos, ISelectionContext context) {
	Vec3d vec3d = state.getOffset(world, pos);
	return VoxelShapes.create(0.25D, 0D, 0.25D, 0.75D, 0.563D, 0.75D).withOffset(vec3d.x, vec3d.y, vec3d.z);
}

 

Issue comments



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.