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.

Letiu

Members
  • Joined

  • Last visited

Everything posted by Letiu

  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/

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.