Posted March 3, 20205 yr I have no idea how to sort my mod's creative inventory (I'm kinda new to modding) Please instructs me
March 3, 20205 yr Author sorry can you please elaborate, i've only been getting into coding mods for nearly a week or so
March 3, 20205 yr 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. New in Modding? == Still learning!
March 3, 20205 yr Author very sorry but I still don't quite understand it, may you go step by step if possible?
March 3, 20205 yr Author 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?
March 3, 20205 yr 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 March 3, 20205 yr by DragonITA New in Modding? == Still learning!
March 3, 20205 yr 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.