Posted April 1, 20169 yr 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....
April 1, 20169 yr Don't use setCreativeTab() on it. If it's not your block/item set it's creative tab to null.
April 1, 20169 yr Author 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....
April 1, 20169 yr Author 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....
April 1, 20169 yr 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.
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.