Make a diamond apple

Started by medi_craft on Wed, 11/15/2017 - 14:50

Topic category: Advanced modding

Last seen on 15:29, 21. Nov 2017
Joined May 2016
User points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • Tracker tickets:
  • MCreator plugins:
  • Comments:
Make a diamond apple
Wed, 11/15/2017 - 14:50

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 ...

Last seen on 02:38, 21. Feb 2020
Joined Oct 2014
User points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • Tracker tickets:
  • 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 :)