Make a diamond apple

Started by medi_craft on

Topic category: Advanced modding

Joined May 2016
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • MCreator plugins:
  • Comments:
Make a diamond apple

Hello,
First of all sorry for my English I am French ...

I would like to create a diamond apple but when I create a new apple with effects ... I must be hungry to eat it: Here is my problem, I wish I could eat it without being hungry ...

Joined Oct 2014
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • MCreator plugins:
  • Comments:
Wait it acctualy goes here…
Tue, 02/20/2018 - 23:42

Wait it acctualy goes here

 

public static class CustomItemFood extends ItemFood {
		public CustomItemFood(int par2, float par3, boolean par4) {
			super(par2, par3, par4);
			setUnlocalizedName("testt");
			setRegistryName("testt");
			ForgeRegistries.ITEMS.register(this);
               this.setAlwaysEdible();
		}

Full class file: https://gist.github.com/jtrent238/ea8f0b8fe58a1feb7a1f710191cd6051#file-test-java-L60-L67

 

Sorry about that :)