first you have to add to your block properties notSolid (that you can't look into the ground)
and second you have to do something like this (in your mod class):
private void doClientStuff(FMLClientSetupEvent event) {
RenderTypeLookup.setRenderLayer(yourBlock, RenderType.getCutout());
}