Jump to content

[Unsolved] Tinted Glass Rendering Problems


TheDrunkMafia

Recommended Posts

Hey,

 

Today I started to mess around with glass and came across a very strange glitch when you tint a transparent block, in this instance when you look though the block it only renders the chunk you are standing in. Producing a weird result:

 

731e0a821d87507506bba6b721bc8380acfb75f8f2.png

 

Also when you pause:

 

731e0a821da0b8db9bd57843f9097700a4bc79697c.png

 

Code

public class OrangeTintedGlass extends BlockBreakable
{
public OrangeTintedGlass(int par1, Material par2Material, boolean par3)
{
     super(par1, "glass", par2Material, par3);
}
public int quantityDropped(Random par1Random)
{
     return 0;
}
@SideOnly(Side.CLIENT)
public int getRenderBlockPass()
{
     return 0;
}
public boolean isOpaqueCube()
{
     return false;
}

public boolean connectedTextures()
{
     return true;
}
public boolean renderAsNormalBlock()
{
     return false;
}
protected boolean canSilkHarvest()
{
     return true;
}
@SideOnly(Side.CLIENT)
public void func_94332_a(IconRegister Par1Iconregister){
this.field_94336_cN = Par1Iconregister.func_94245_a("/Glass/Orange");
}
}

 

Any help would be extremely appreciated.

Link to comment
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.

Guest
Unfortunately, your content contains terms that we do not allow. Please edit your content to remove the highlighted words below.
Reply to this topic...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

Announcements



×
×
  • Create New...

Important Information

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