Create block programmatically based on node content
Found a few modules depending on your need:

Node field block


  An easy way to create blocks with a collection of node fields. Focused on letting customers manage most of the content on a page in just one node. You can create multiple blocks for a node with one or a combination of fields and move them in different regions.


Field as block


  Field as Block provides an easy way to display one or more fields of the current node in a block.


There's a custom way also if you want. You can use below function for this purpose.

render(field_view_field('node', $node, 'field_myfield'));