Jump to content
Search In
  • More options...
Find results that contain...
Find results in...

[1.7.2] I'm extending the vanilla stairs, and they kinda don't work


Recommended Posts

I extend vanilla stairs with my own class. I create a few instances of it.

 

The problem is that the lighting is wrong on nearby blocks.

 

Vanilla stairs:

 

 

 

My stairs:

 

 

 

As you can see, the light level is completely wrong.

 

public class BaseStairs extends BlockStairs
{
    public BaseStairs(Block block, int someInt)
    {
        super(block, someInt);
    }

    @Override
    public boolean isOpaqueCube() {
        return false;
    }
    
    @Override
    public boolean renderAsNormalBlock() {
    	return false;
    }
}

 

Someone on the #minecraftforge channel suggested I override getAmbientOcclusionLightLevel and return 0.0f, but that made no difference.

Link to post
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.

Guest
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.



×
×
  • Create New...

Important Information

By using this site, you agree to our Privacy Policy.