Search In
• More options...
Find results that contain...
Find results in...

# Cannot Find Symbol ItemGroup.TAB_MISC

## 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

Mentioned Minecraft Version
##### Share on other sites

look into the ItemGroup class, check if the variable TAB_MISC exists, if not look what's the new name for it (iirc it's MISC)

##### Share on other sites

I used VSCode's peek definition feature. I can see ItemGroup.class and TAB_MISC exists as TAB_MISC

##### Share on other sites

Are you sure you're importing the right class?

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

## Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

×   Pasted as rich text.   Restore formatting

Only 75 emoji are allowed.

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×

• ### Posts

• The Forge team can't support every version of Minecraft in-perpetuity. No software company does that with their software. Forge has decided that they will support the most recent major version (1.17) and a single LTS version (1.15) 1.12 is 4 years old at this point.
• I need help, I can't enter my server, from one day to another I couldn't connect anymore, that LOG is what I get when I log in, I already tried with another launcher and with another account but it marks the same error, my friends They can still play on the server, and I being the owner of the server I can't enter haha please help   [02:34:32] [Netty Epoll Server IO #2/ERROR] [ne.mi.fm.ne.NetworkRegistry/NETREGISTRY]: Channels [carryon:carryonpackets] rejected their client side version number[02:34:32] [Netty Epoll Server IO #2/ERROR] [ne.mi.fm.ne.FMLHandshakeHandler/FMLHANDSHAKE]: Terminating connection with client, mismatched mod list[02:34:32] [Server thread/INFO] [minecraft/ServerLoginNetHandler]: com.mojang.authlib.GameProfile@******[id=<null>,name=LeonardoRR,properties={},legacy=false] lost connection: Connection closed - mismatched mod channel list
• I'm looking into UniformHeight because that seems to be the place where the message is logged. I'm not sure how the min > max thought because just finding usages of UniformHeight.of() shows that all the heights created seem to be constant. I'm not sure what's going on.
• I finally got it myself. But the onEntityJoinWorld event doesn't trigger vanilla entities to go after modded entities (You know cats hunt rabbits in game right?).
• So today I was trying to install forge 1.8.9 yet when I clicked install it says "Installation successful" yet when I search for it in my new installations folder it isn't there. I use the one that says that has no bugs per the top of the forum section. but even then it doesn't work. I have java installed and everything that is needed to install Forge and I have no idea why its not working, I reinstalled my Minecraft launcher and everything it just isn't working. Send help!

• 7
• 0
• 3
• 2
• 0
• ### Who's Online (See full list)

×

• #### Activity

×
• Create New...