Jump to content

Letiu

Members
  • Posts

    2
  • Joined

  • Last visited

Converted

  • Gender
    Undisclosed
  • Personal Text
    I am new!

Letiu's Achievements

Tree Puncher

Tree Puncher (2/8)

0

Reputation

  1. Thanks for the help. I actually made a mistake in my ItemBlock class and looked everywhere else q.q
  2. Hi everyone, I have the following problem I want to render a block in the inventory based on nbt. Sadly this is not possible with ISimpleBlockRenderingHandler (as far as I know). Since I was going to add an ItemBlock anyway I tried using an IItemRenderer on it. For a normal Item the renderer was working fine but not with the ItemBlock. After some tracking I figured that MinecraftForgeClient.getItemRenderer(item, INVENTORY) didn't return the renderer. public static IItemRenderer getItemRenderer(ItemStack item, ItemRenderType type) { IItemRenderer renderer = customItemRenderers[item.itemID]; if (renderer != null && renderer.handleRenderType(item, type)) { return customItemRenderers[item.itemID]; } return null; } The method uses the itemID from the stack which should be the blockID. If I remember correctly ItemBlocks have their own or shifted ids. Is there a proper way to register IItemRenderers for ItemBlocks or was it never intended to? (I'm testing this on 1.7.2 atm) The only work around I found so far was to create an Item with its own normal id. hopefully someone can help me out here. greetings Letiu o/
×
×
  • Create New...

Important Information

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