From what I understand using useNeighborBrightness and isFullBlock should be enough to make this work but I'm having issues:
public class PathBlock extends ModBlock {
private static final AxisAlignedBB PATH_AABB = new AxisAlignedBB(0.0, 0.0, 0.0, 1.0, 0.3, 1.0);
PathBlock()
{
super(Material.ROCK);
this.setHardness(4.0f);
this.setSoundType(SoundType.STONE);
this.setLightOpacity(0);
this.useNeighborBrightness = true;
this.fullBlock = false;
}
// Rendering stuff
@Override
public boolean isFullyOpaque(IBlockState state) {
return false;
}
@Override
public boolean isFullBlock(IBlockState state) {
return false;
}
@Override
public boolean isOpaqueCube(IBlockState state) {
return false;
}
public boolean doesSideBlockRendering(IBlockState state, IBlockAccess world, BlockPos pos, EnumFacing face)
{
return false;
}
public AxisAlignedBB getBoundingBox(IBlockState state, IBlockAccess source, BlockPos pos)
{
return PATH_AABB;
}
}
The base class:
public class ModBlock extends Block
{
public ModBlock(Material aMaterial) {
super(aMaterial);
this.init();
}
public ModBlock()
{
super(Material.WOOD);
this.init();
}
public void init()
{
this.setCreativeTab(CreativeTab.ATB_TAB);
}
@Override
public String getUnlocalizedName()
{
return String.format("tiles.%s%s", Reference.RESOURCE_PREFIX, getUnwrappedUnlocalizedName(super.getUnlocalizedName()));
}
protected String getUnwrappedUnlocalizedName(String unlocalizedName)
{
return unlocalizedName.substring(unlocalizedName.indexOf(".") + 1);
}
}
Model JSON:
{
"__comment": "Model generated using MrCrayfish's Model Creator (http://mrcrayfish.com/modelcreator/)",
"textures": {
"0": "blocks/stone",
"particle": "blocks/stone"
},
"elements": [
{
"name": "Cube",
"from": [ 2.0, 0.0, 2.0 ],
"to": [ 5.0, 1.0, 7.0 ],
"faces": {
"north": { "texture": "#0", "uv": [ 0.0, 0.0, 3.0, 1.0 ] },
"east": { "texture": "#0", "uv": [ 0.0, 0.0, 5.0, 1.0 ] },
"south": { "texture": "#0", "uv": [ 0.0, 0.0, 3.0, 1.0 ] },
"west": { "texture": "#0", "uv": [ 0.0, 0.0, 5.0, 1.0 ] },
"up": { "texture": "#0", "uv": [ 0.0, 0.0, 3.0, 5.0 ] },
"down": { "texture": "#0", "uv": [ 0.0, 0.0, 3.0, 5.0 ] }
}
},
{
"name": "Cube",
"from": [ 7.0, 0.0, 6.0 ],
"to": [ 10.0, 1.0, 11.0 ],
"faces": {
"north": { "texture": "#0", "uv": [ 0.0, 0.0, 3.0, 1.0 ] },
"east": { "texture": "#0", "uv": [ 0.0, 0.0, 5.0, 1.0 ] },
"south": { "texture": "#0", "uv": [ 0.0, 0.0, 3.0, 1.0 ] },
"west": { "texture": "#0", "uv": [ 0.0, 0.0, 5.0, 1.0 ] },
"up": { "texture": "#0", "uv": [ 0.0, 0.0, 3.0, 5.0 ] },
"down": { "texture": "#0", "uv": [ 0.0, 0.0, 3.0, 5.0 ] }
}
},
{
"name": "Cube",
"from": [ 12.0, 0.0, 10.0 ],
"to": [ 15.0, 1.0, 15.0 ],
"faces": {
"north": { "texture": "#0", "uv": [ 0.0, 0.0, 3.0, 1.0 ] },
"east": { "texture": "#0", "uv": [ 0.0, 0.0, 5.0, 1.0 ] },
"south": { "texture": "#0", "uv": [ 0.0, 0.0, 3.0, 1.0 ] },
"west": { "texture": "#0", "uv": [ 0.0, 0.0, 5.0, 1.0 ] },
"up": { "texture": "#0", "uv": [ 0.0, 0.0, 3.0, 5.0 ] },
"down": { "texture": "#0", "uv": [ 0.0, 0.0, 3.0, 5.0 ] }
}
},
{
"name": "Cube",
"from": [ 12.0, 0.0, 2.0 ],
"to": [ 15.0, 1.0, 5.0 ],
"faces": {
"north": { "texture": "#0", "uv": [ 0.0, 0.0, 3.0, 1.0 ] },
"east": { "texture": "#0", "uv": [ 0.0, 0.0, 3.0, 1.0 ] },
"south": { "texture": "#0", "uv": [ 0.0, 0.0, 3.0, 1.0 ] },
"west": { "texture": "#0", "uv": [ 0.0, 0.0, 3.0, 1.0 ] },
"up": { "texture": "#0", "uv": [ 0.0, 0.0, 3.0, 3.0 ] },
"down": { "texture": "#0", "uv": [ 0.0, 0.0, 3.0, 3.0 ] }
}
},
{
"name": "Cube",
"from": [ 11.0, 0.0, 2.0 ],
"to": [ 12.0, 1.0, 3.0 ],
"faces": {
"north": { "texture": "#0", "uv": [ 0.0, 0.0, 1.0, 1.0 ] },
"east": { "texture": "#0", "uv": [ 0.0, 0.0, 1.0, 1.0 ] },
"south": { "texture": "#0", "uv": [ 0.0, 0.0, 1.0, 1.0 ] },
"west": { "texture": "#0", "uv": [ 0.0, 0.0, 1.0, 1.0 ] },
"up": { "texture": "#0", "uv": [ 0.0, 0.0, 1.0, 1.0 ] },
"down": { "texture": "#0", "uv": [ 0.0, 0.0, 1.0, 1.0 ] }
}
},
{
"name": "Cube",
"from": [ 5.0, 0.0, 4.0 ],
"to": [ 6.0, 1.0, 5.0 ],
"faces": {
"north": { "texture": "#0", "uv": [ 0.0, 0.0, 1.0, 1.0 ] },
"east": { "texture": "#0", "uv": [ 0.0, 0.0, 1.0, 1.0 ] },
"south": { "texture": "#0", "uv": [ 0.0, 0.0, 1.0, 1.0 ] },
"west": { "texture": "#0", "uv": [ 0.0, 0.0, 1.0, 1.0 ] },
"up": { "texture": "#0", "uv": [ 0.0, 0.0, 1.0, 1.0 ] },
"down": { "texture": "#0", "uv": [ 0.0, 0.0, 1.0, 1.0 ] }
}
},
{
"name": "Cube",
"from": [ 6.0, 0.0, 9.0 ],
"to": [ 7.0, 1.0, 11.0 ],
"faces": {
"north": { "texture": "#0", "uv": [ 0.0, 0.0, 1.0, 1.0 ] },
"east": { "texture": "#0", "uv": [ 0.0, 0.0, 2.0, 1.0 ] },
"south": { "texture": "#0", "uv": [ 0.0, 0.0, 1.0, 1.0 ] },
"west": { "texture": "#0", "uv": [ 0.0, 0.0, 2.0, 1.0 ] },
"up": { "texture": "#0", "uv": [ 0.0, 0.0, 1.0, 2.0 ] },
"down": { "texture": "#0", "uv": [ 0.0, 0.0, 1.0, 2.0 ] }
}
},
{
"name": "Cube",
"from": [ 11.0, 0.0, 13.0 ],
"to": [ 12.0, 1.0, 14.0 ],
"faces": {
"north": { "texture": "#0", "uv": [ 0.0, 0.0, 1.0, 1.0 ] },
"east": { "texture": "#0", "uv": [ 0.0, 0.0, 1.0, 1.0 ] },
"south": { "texture": "#0", "uv": [ 0.0, 0.0, 1.0, 1.0 ] },
"west": { "texture": "#0", "uv": [ 0.0, 0.0, 1.0, 1.0 ] },
"up": { "texture": "#0", "uv": [ 0.0, 0.0, 1.0, 1.0 ] },
"down": { "texture": "#0", "uv": [ 0.0, 0.0, 1.0, 1.0 ] }
}
},
{
"name": "Cube",
"from": [ 3.0, 0.0, 11.0 ],
"to": [ 5.0, 1.0, 14.0 ],
"faces": {
"north": { "texture": "#0", "uv": [ 0.0, 0.0, 2.0, 1.0 ] },
"east": { "texture": "#0", "uv": [ 0.0, 0.0, 3.0, 1.0 ] },
"south": { "texture": "#0", "uv": [ 0.0, 0.0, 2.0, 1.0 ] },
"west": { "texture": "#0", "uv": [ 0.0, 0.0, 3.0, 1.0 ] },
"up": { "texture": "#0", "uv": [ 0.0, 0.0, 2.0, 3.0 ] },
"down": { "texture": "#0", "uv": [ 0.0, 0.0, 2.0, 3.0 ] }
}
},
{
"name": "Cube",
"from": [ 7.0, 0.0, 13.0 ],
"to": [ 9.0, 1.0, 15.0 ],
"faces": {
"north": { "texture": "#0", "uv": [ 0.0, 0.0, 2.0, 1.0 ] },
"east": { "texture": "#0", "uv": [ 0.0, 0.0, 2.0, 1.0 ] },
"south": { "texture": "#0", "uv": [ 0.0, 0.0, 2.0, 1.0 ] },
"west": { "texture": "#0", "uv": [ 0.0, 0.0, 2.0, 1.0 ] },
"up": { "texture": "#0", "uv": [ 0.0, 0.0, 2.0, 2.0 ] },
"down": { "texture": "#0", "uv": [ 0.0, 0.0, 2.0, 2.0 ] }
}
},
{
"name": "Cube",
"from": [ 8.0, 0.0, 3.0 ],
"to": [ 10.0, 1.0, 5.0 ],
"shade": false,
"faces": {
"north": { "texture": "#0", "uv": [ 0.0, 0.0, 2.0, 1.0 ] },
"east": { "texture": "#0", "uv": [ 0.0, 0.0, 2.0, 1.0 ] },
"south": { "texture": "#0", "uv": [ 0.0, 0.0, 2.0, 1.0 ] },
"west": { "texture": "#0", "uv": [ 0.0, 0.0, 2.0, 1.0 ] },
"up": { "texture": "#0", "uv": [ 0.0, 0.0, 2.0, 2.0 ] },
"down": { "texture": "#0", "uv": [ 0.0, 0.0, 2.0, 2.0 ] }
}
}
]
}
What I'm seeing: