Jump to content
View in the app

A better way to browse. Learn more.

Forge Forums

A full-screen app on your home screen with push notifications, badges and more.

To install this app on iOS and iPadOS
  1. Tap the Share icon in Safari
  2. Scroll the menu and tap Add to Home Screen.
  3. Tap Add in the top-right corner.
To install this app on Android
  1. Tap the 3-dot menu (⋮) in the top-right corner of the browser.
  2. Tap Add to Home screen or Install app.
  3. Confirm by tapping Install.

Featured Replies

Posted

I have a multi-textured block (a custom furnace to be exact). The textures are fine and work fine and when I place the block they orientate correctly. However, the icon in the inventory only shows the side and top textures, not the side, top and front like a normal furnace. Any helps would be appreciated as to how to fix this.

Thanks in advance.

 

How the icon looks in the inventory next to a vanilla furnace:

068ee5b76c9d7611bad4c688faca2a06.png

The BlockCustomFurnace class (the texture parts):


    @SideOnly(Side.CLIENT)
    private IIcon furnaceIconTop;
    @SideOnly(Side.CLIENT)
    private IIcon furnaceIconFront;

    @Override
    public IIcon getIcon(int par1, int par2)
    {
        return par1 == 1 ? this.furnaceIconTop : (par1 == 0 ? this.furnaceIconTop : (par1 != par2 ? this.blockIcon : this.furnaceIconFront));
    }

    @Override
    @SideOnly(Side.CLIENT)
    public void registerBlockIcons(IIconRegister par1IconRegister)
    {
        this.blockIcon = par1IconRegister.registerIcon("freshpower:superfurnace_side");
        this.furnaceIconFront = par1IconRegister.registerIcon(this.isActive ? "freshpower:superfurnace_front_on" : "freshpower:superfurnace_front_off");
        this.furnaceIconTop = par1IconRegister.registerIcon("freshpower:superfurnace_top");
    }

The front texture I want to show on the icon:

width=16 height=16http://s10.postimg.org/t03lprslh/superfurnace_front_off.png[/img]

I had the same problem just 5 minutes ago ;-)

I think the only solution is a custom Item renderer. Do not ask me how it works, I am trying to implement it just now.

try {

...

}catch(Throwable t) {

    MagicAppErrorSolver.solveProblem(t, this);

}

//Programmers will lose work

  • Author

I had the same problem just 5 minutes ago ;-)

I think the only solution is a custom Item renderer. Do not ask me how it works, I am trying to implement it just now.

Like an ItemBlock?

I think yes, but I will be able to say it to you, if I am ready with it. Sadly I have to do some other things now. Eventually you can help me later? ;-)

try {

...

}catch(Throwable t) {

    MagicAppErrorSolver.solveProblem(t, this);

}

//Programmers will lose work

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

Important Information

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

Configure browser push notifications

Chrome (Android)
  1. Tap the lock icon next to the address bar.
  2. Tap Permissions → Notifications.
  3. Adjust your preference.
Chrome (Desktop)
  1. Click the padlock icon in the address bar.
  2. Select Site settings.
  3. Find Notifications and adjust your preference.