Jump to content

Recommended Posts

Posted
5 minutes ago, diesieben07 said:

 

 

1 minute ago, YuriNa162 said:

sorry can you please elaborate, i've only been getting into coding mods for nearly a week or so

 

Ok, if i correctly have understand then you need to go into your itemgroup class, override ItemGroup.fill (Use your IDE: write fill and then press Crtl + Spacebar). Finally you need to do something with the super and yes, hope it work.

  • Thanks 1

New in Modding? == Still learning!

Posted

I now have my override,

in the other topic you posted, you mentioned editing the list

I have this code:

@Override
    public ItemStack createIcon() 
    {
        
        return new ItemStack(ItemList.copper_ingot);
    }
    @Override
    public void fill(NonNullList<ItemStack> items) 
    {
        super.fill(items);
    }

 

what's the list i'm suppose to edit?

 

Posted (edited)

Ok, i never edited a creative tab, so sorry but i can‘t help you.

4 minutes ago, YuriNa162 said:

I now have my override,

in the other topic you posted, you mentioned editing the list

I have this code:

@Override
    public ItemStack createIcon() 
    {
        
        return new ItemStack(ItemList.copper_ingot);
    }
    @Override
    public void fill(NonNullList<ItemStack> items) 
    {
        super.fill(items);
    }

 

what's the list i'm suppose to edit?

 

Ok, i am actually not working with ItemStack, but when i read then i see that it was a List.

Edited by DragonITA

New in Modding? == Still learning!

Posted
1 hour ago, YuriNa162 said:

 @Override
    public void fill(NonNullList<ItemStack> items) 
    {
        super.fill(items);
    }

Try with something like: new ItemStack, and then insert the passing parameters.

New in Modding? == Still learning!

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.

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

Announcements



×
×
  • Create New...

Important Information

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