How to use an item from the mod itself in code ?

Started by YannBCF on Fri, 03/13/2020 - 00:56

Topic category: Help with MCreator software

Last seen on 04:29, 17. Mar 2020
Joined Sep 2019
User points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • Tracker tickets:
  • MCreator plugins:
  • Comments:
How to use an item from the mod itself in code ?
Fri, 03/13/2020 - 00:56

Hello everybody, i'm having trouble with a simple thing.

 

I want to replace the item used after the craft being done with a specific item from the mod itself in the crafting grid. So i did this @override but it doesn't work

 

		@Override
		public Item setContainerItem(Item containerItem) {
    	return super.setContainerItem(Items.MCreatorFireGem.block);
		}	

and If i do

		@Override
		public Item setContainerItem(Item containerItem) {
    	return super.setContainerItem(Items.ELYTRA);
		}	

it works fine with the vanilla items (Elytra in this case), i just don't know the syntax to call an item from the mcreator mod itself. Thanks for your help !