YuriNa162 Posted March 3, 2020 Posted March 3, 2020 I have no idea how to sort my mod's creative inventory (I'm kinda new to modding) Please instructs me 1 Quote
YuriNa162 Posted March 3, 2020 Author Posted March 3, 2020 sorry can you please elaborate, i've only been getting into coding mods for nearly a week or so Quote
DragonITA Posted March 3, 2020 Posted March 3, 2020 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. 1 Quote New in Modding? == Still learning!
YuriNa162 Posted March 3, 2020 Author Posted March 3, 2020 very sorry but I still don't quite understand it, may you go step by step if possible? Quote
YuriNa162 Posted March 3, 2020 Author Posted March 3, 2020 Nvm, i didn't see the .fill when pressing Ctrl+Spacebar, thx for the help Quote
YuriNa162 Posted March 3, 2020 Author Posted March 3, 2020 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? Quote
DragonITA Posted March 3, 2020 Posted March 3, 2020 (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 March 3, 2020 by DragonITA Quote New in Modding? == Still learning!
DragonITA Posted March 3, 2020 Posted March 3, 2020 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. Quote New in Modding? == Still learning!
Recommended Posts
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.