The bug
The chorus fruit is edible and restores hunger, yet it is located in the "Miscellaneous" tab of the creative inventory.
Code Analysis
Code analysis by @unknown can be found in this comment.
Attachments
Comments 13
The following is based on a decompiled version of MC 1.12 using mcp940.
Please link this in the description of the report.
In the classΒ net.minecraft.item.Item.java on line 1051, you have the registerItem for ChorusFruit.
registerItem(432, "chorus_fruit", (new ItemChorusFruit(4, 0.3F)).setAlwaysEdible().setUnlocalizedName("chorusFruit").setCreativeTab(CreativeTabs.MATERIALS));
As you can see ChorusFruit is set as 'MATERIALS' in the creative tab.
.setCreativeTab(CreativeTabs.MATERIALS));
In order to display it by 'Foodstuffs', you'll need to change 'MATERIALS' to 'FOOD'
.setCreativeTab(CreativeTabs.FOOD));
Now it will display in 'Foodstuffs' as seen in this screenshot:Β
[media].
Hope this helps! π
From now on, we only accept reports about "incorrect" creative inventory sort ordering if the items/blocks were added in the Nether Update (1.16) or later. All other issues will be closed as a duplicate of MC-1797, which has been marked as Invalid due to the fact it is seen as a feature request.
Quick Links:
π Issue Guidelines β π Community Support β π§ Customer Support β βοΈ Feedback and Suggestions β π Game Wiki
π¬ Mojira Subreddit β π¬ Mojira Discord
Can confirm, it really needs to be in the foods stuff tab.