Jump to content

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


KGS

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