Jump to content

[Solved]Removing an item/block's creative tab


Toost

Recommended Posts

Is there a way to remove an item from a creative tab? That is, keep an item from showing up in a creative tab?

DRAGONMANG: "I'm Dragonmang, m8. Here me roar."

HERO: "Oh no... not. Dragonmang."

DRAGONMANG: "Roar, m8."

HERO: "Ahhh......"

And so the brave knight and Dragonmang fought on the mountaintop for many moons....

Link to comment
Share on other sites

The class I have created extends the Torch class, so it automatically inherits the original creative tab. I don't want to change my item's creative tab; I just want to remove it.

DRAGONMANG: "I'm Dragonmang, m8. Here me roar."

HERO: "Oh no... not. Dragonmang."

DRAGONMANG: "Roar, m8."

HERO: "Ahhh......"

And so the brave knight and Dragonmang fought on the mountaintop for many moons....

Link to comment
Share on other sites

You don't understand. I'm not trying to remove a vanilla blocks creative tab; I'm trying to remove one of my own blocks creative tab.

EDIT:

Nvm. I was being stupid.

DRAGONMANG: "I'm Dragonmang, m8. Here me roar."

HERO: "Oh no... not. Dragonmang."

DRAGONMANG: "Roar, m8."

HERO: "Ahhh......"

And so the brave knight and Dragonmang fought on the mountaintop for many moons....

Link to comment
Share on other sites

If you're extending BlockTorch and just doing setCreativeTab(null) isn't working, try overriding getCreativeTabToDisplayOn and returning null instead.

@Override
public CreativeTabs getCreativeTabToDisplayOn() {
  return null;
}

 

Not the best way to do it, but it works.

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.