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

Is there any way to fix this without using the NEI API?

 

I have a set of custom door blocks and items for placing them, and NEI wants to list both blocks AND their items (which it interestingly enough does not do with vanilla doors).

Blocks are only shown as items in NEI. Technically they are ItemBlocks. There is no way it shows duplicates unless you have it programmed somewhere.

  • Author

What do you mean?

 

Each door has an Item and an associated Block. This is how vanilla does doors.

 

When you use the item, the associated block is placed.

Blocks are the in-world representation. ItemBlocks are the thing in your inventory. They are the item form of the blocks. Blocks cannot be placed in an inventory, only their item form. NEI also only shows a block's item form.

If you have an item to place your block, it should extend ItemBlock and its class should be registered with your block.

GameRegistry.registerBlock(Block, Class<?extends ItemBlock>, String);

You also don't need to initialize and register this item yourself.

  • Author

Edit: The bug is fixed. Now I have another problem.

 

Previously my doors had an Item an a Block. The Block had a texture consisting of two pieces and the item had another texture that was flat projected like vanilla doors.

 

However, now that I changed the Item to an ItemBlock, it now uses the lower Block texture. This is not right at all! I even pass the ItemBlock the texture it SHOULD use, but it seems to override it.

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.