Jump to content

Place solid block dependent blocks on a non-solid block?


Alix_The_Alicorn

Recommended Posts

I have a transparent block (ModBlockConnectedTextureTransparent... I'm pretty sure at least), and I have tried a few thing sot get redstone, levers, etc on it, but I can't figure it out. My code is at https://github.com/alix-the-alicorn/Carbon-Mod/blob/17/common_carbonmod/com/jmanpenilla/carbonmod/common/block/ModBlockConnectedTextureTransparent.java. Any help is appreciated!

Link to comment
Share on other sites

This will allow you to place torches, ladders, redstone etc. on top or on the sides of your block respectively .

 

For 1.6.4

@Override
public boolean isBlockSolidOnSide(World world, int x, int y, int z, ForgeDirection side)
{
return true;
}

 

and for 1.7.2

@Override
public boolean isSideSolid(IBlockAccess world, int x, int y, int z, ForgeDirection side)
{
return true;
}

Link to comment
Share on other sites

Guest
This topic is now closed to further replies.

Announcements



×
×
  • Create New...

Important Information

By using this site, you agree to our Terms of Use.