How to prevent item from displaying in creative inv

Started by Waterrail on

Topic category: Help with Minecraft modding (Java Edition)

Joined Apr 2017
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • MCreator plugins:
  • Comments:
How to prevent item from displaying in creative inv

How do I prevent a mod element (e.g. block or item) from displaying in the creative inventory? Command blocks or barriers also does not appear in the creative inv. The reason is because I made an item - a placeholder for a gun bullet texture. Of course, I don't want it to appear in the creative inv becauce it's a technical item and it does not do anything. Can anyone help? Please? ;)

Joined Jul 2017
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • MCreator plugins:
  • Comments:
Go into the Code for the Item
Thu, 07/20/2017 - 13:40

Go into the Code for the Item you Want to be Hidden,

Scroll Down Untill you see this line of code

setCreativeTab(CreativeTabs.TABHERE);   Delete that Line of Code and Click Build and Save Once its Finished, Voila! you have Hidden an Item/Block from the Creative Inventory! Unless you have it set to Lock Code, be careful, as editing the item/block from MCreator GUI wil reset it back to default  
Joined Apr 2017
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • MCreator plugins:
  • Comments:
RE:Go into the Code for the Item
Thu, 07/20/2017 - 14:17

@#1 Thanks! 

Joined Jul 2016
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • MCreator plugins:
  • Comments:
That helped me too!
Thu, 07/20/2017 - 14:30

That helped me too!

Joined Apr 2017
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • MCreator plugins:
  • Comments:
RE:That helped me too!
Thu, 07/20/2017 - 14:47

@#2 Oh nice :)