mojira.dev
MC-84022

Chorus fruit not in the 'Foodstuffs' tab despite being edible

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

Can confirm, it really needs to be in the foods stuff tab.

Confirmed to 15w41a and b.

Must be in foods tab, 15w44b

Still in 1.9.1-pre3

Still in 1.9.3-pre3

3 more comments

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! πŸ™‚

Confirmed in 1.16-pre5.

Affects 1.16 rc-1, Can I request ownership of this ticket so I can continue to update it

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

Christie N

anthony cicinelli

(Unassigned)

Confirmed

Inventory, UI

chorus, food, fruit, inventory

Minecraft 15w31b, Minecraft 15w31c, Minecraft 15w32c, Minecraft 15w33c, Minecraft 15w34b, ..., 1.16.2 Release Candidate 2, 1.16.2, 1.16.3 Release Candidate 1, 1.16.3, 1.16.4 Pre-release 1

Retrieved