Jump to content
Search In
  • More options...
Find results that contain...
Find results in...

Block with specific items for placing them show up twice in NEI

Recommended Posts

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

Link to post
Share on other sites

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.

Link to post
Share on other sites

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.

Link to post
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.

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.

  • Create New...

Important Information

By using this site, you agree to our Privacy Policy.