More cable fixes.

This commit is contained in:
Raoul Van den Berge
2016-03-19 23:04:17 +01:00
parent c8c15896d2
commit fdc7001faa
3 changed files with 18 additions and 4 deletions

View File

@@ -60,6 +60,12 @@ public class BlockCable extends BlockBase
return new AxisAlignedBB(4 * pixel, 4 * pixel, 4 * pixel, 1 - 4 * pixel, 1 - 4 * pixel, 1 - 4 * pixel);
}
@Override
public AxisAlignedBB getCollisionBoundingBox(IBlockState state, World world, BlockPos pos)
{
return getBoundingBox(state, world, pos);
}
@Override
public boolean hasTileEntity(IBlockState state)
{
@@ -71,4 +77,10 @@ public class BlockCable extends BlockBase
{
return new TileCable();
}
@Override
public boolean isOpaqueCube(IBlockState state)
{
return false;
}
}

View File

@@ -2,15 +2,17 @@
"forge_marker": 1,
"defaults": {
"textures": {
"all": "storagecraft:blocks/cable"
"all": "storagecraft:blocks/cable",
"particle": "storagecraft:blocks/cable"
},
"model": "storagecraft:cable_core",
"uvlock": true
},
"variants": {
"inventory": {
"model": "storagecraft:cable_inventory"
},
"inventory": [{
"model": "storagecraft:cable",
"transform": "forge:default-block"
}],
"north": {
"true": {
"submodel": "storagecraft:cable_north"