is it possible to take already existing minecraft items and put them into an Mcreator tab?

Started by LennyMicBob on

Topic category: Help with modding (Java Edition)

Last seen on 02:11, 22. Jan 2023
Joined Dec 2022
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • MCreator plugins:
  • Comments:
is it possible to take already existing minecraft items and put them into an Mcreator tab?

am making a mod that does this, since it would be helpful to not have to either have one already or constantly use /give. would it be possible, im down to even editing the code myself if i have to.

Last seen on 02:11, 22. Jan 2023
Joined Dec 2022
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • MCreator plugins:
  • Comments:
thanks you very much! Happy…
Sun, 12/25/2022 - 02:34

thanks you very much! Happy the Holidays to the you and!

Last seen on 02:11, 22. Jan 2023
Joined Dec 2022
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • MCreator plugins:
  • Comments:
So @Sayne , the thing didnt…
Sun, 12/25/2022 - 02:36

So @Sayne , the thing didnt help me, just made me more confused. Can you elaborate?

Last seen on 17:59, 7. Jan 2024
Joined Jul 2020
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • MCreator plugins:
  • Comments:
@Override public void…
Sun, 12/25/2022 - 09:13
@Override
public void displayAllReleventItems(List items) {
    super.displayAllReleventItems(items);
        items.add(new ItemStack(Items.apple);
        }

 ^^ From what im reading, you basically want to override what items normally show (the @Override) and then add a list of items you want shown. Honestly im not sure so youd have to check, but you might be able to skip the override and just add the items. Hope this helps, and merry Christmas (or whatever you celebrate)

Last seen on 02:11, 22. Jan 2023
Joined Dec 2022
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • MCreator plugins:
  • Comments:
bit late, but thanks for…
Sun, 12/25/2022 - 20:23

bit late, but thanks for that! one question, is it version dependant? im using the most recent version of MCreator. Have a good holiday season, and i celebrate Christmas :3