Jump to content

[1.7.10] Can't Override getSubItems for more than 16 Metadata Items


Recommended Posts

I was trying to make an Item with subitems,

it works all fine but I can not override the getSubItem method of the ItemDye class:

    public void getSubItems(Item item, CreativeTabs tab, List list){
         for (int i = 0; i < 17; i++){
                list.add(new ItemStack(item, 1, i));

I get an underlined error:


The method getSubItems(Item, CreativeTabs, List) of type ItemSeasoning must override or implement a supertype method


and I don't know why and if I can get around this somehow or if the max amount of metadata is already reached with 16?

Everything else works find, name is right and I get 16 Items, it is not crashing but the 17th item just doesn't show up.


Thanks for every help


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.
Note: Your post will require moderator approval before it will be visible.

Unfortunately, your content contains terms that we do not allow. Please edit your content to remove the highlighted words below.
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.


  • Create New...

Important Information

By using this site, you agree to our Terms of Use.