Jump to content

Making a Block without .setCreativeTab() makes it vanish from tabs


trollworkout

Recommended Posts

Even if you give it's items a creative tab it will still not show up.

 

 

Seems the BlockItem's creative tab setting is ingored and the Block will appear only if you set it on the Block side

Disclaimer:  I been told to keep my opinions to myself, to shut up and that I am spreading lies and misinformation or even that my methods are unorthodox and or too irregular. Here are my suggestions take it or leave it.

Link to comment
Share on other sites

Shows up in creative tab

	public static final Block DEPOSITS_VAT = new DepositsVat().setUnlocalizedName("depositsVat").setRegistryName("depositsVat").setCreativeTab(ModData.CREATIVE_TAB);

 

Doesn't

	public static final Block DEPOSITS_VAT = new DepositsVat().setUnlocalizedName("depositsVat").setRegistryName("depositsVat");

 

This doesn't matter

	public static final ItemBlock DEPOSITS_VAT = (ItemBlock) new ItemBlock(ModBlocks.DEPOSITS_VAT).setUnlocalizedName("depositsVat").setRegistryName("depositsVat").setCreativeTab(ModData.CREATIVE_TAB);

 

 

Disclaimer:  I been told to keep my opinions to myself, to shut up and that I am spreading lies and misinformation or even that my methods are unorthodox and or too irregular. Here are my suggestions take it or leave it.

Link to comment
Share on other sites

Thanks. I kinda thought that items is what show up in the creative pane and not blocks. But it seems an ItemBlock actually takes it's creative tab data from the block and ignores it's own info. thanks

Disclaimer:  I been told to keep my opinions to myself, to shut up and that I am spreading lies and misinformation or even that my methods are unorthodox and or too irregular. Here are my suggestions take it or leave it.

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

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

Announcements



×
×
  • Create New...

Important Information

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