Jump to content
Search In
  • More options...
Find results that contain...
Find results in...

Cannot Find Symbol ItemGroup.TAB_MISC


Rad Poseidon
 Share

Recommended Posts

I'm trying to register a new item, however compilation tells me that the Symbol ItemGroup.TAB_MISC cannot be found. I am using the latest MDK (36.2.4) for Minecraft 1.16.5 and I have it setup in VSCode

public static final RegistryObject<Item> BandageItem = ITEMS.register("bandage", () -> new Item(
	new Item.Properties().tab( ItemGroup.TAB_MISC )
) );
Hard_Knock_Life\src\main\java\com\rad_poseidon\hardknocklife\item\ModItems.java:16: error: cannot find symbol
                new Item.Properties().tab( ItemGroup.TAB_FOOD )
                                                    ^
  symbol:   variable TAB_FOOD
  location: class net.minecraft.item.ItemGroup
1 error

I've considered changing to a Java Dedicated IDE, but it should still work with VSCode, which is what I would prefer to keep using.
I have imported net.minecraft.item.ItemGroup as well. Peeking the definition of TAB_MISC shows it fine

Edited by Rad Poseidon
Mentioned Minecraft Version
Link to comment
Share on other sites

Just as I was booting up VS Code to double check, VSCode stopped saying TAB_MISC and just said MISC. I'm not sure why it is just now doing it though because I reloaded VSCode several times and even rebuild the project from scratch. Sorry for the trouble, I guess it had something to do with my mappings setting. 

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.

Guest
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.

 Share



×
×
  • Create New...

Important Information

By using this site, you agree to our Privacy Policy.