Jump to content

Recommended Posts

Posted

Eat some food, mostly a custom food when your hunger bar is full.

 

 

 

I know its possible, i saw it somewhere on teh webs, but for the past 3 hours of searching i cannot,

someone shed some light on this?

Posted

You put an additional line of code in your statics.

public static final Item CLASSNAME = new ITEMNAME(ID).setAlwaysEdible().setItemName("ITEMNAME");

 

See what I did there? I added the .setAlwaysEdible() line. This'll make your food always consumable.

 

Hope this helps!

 

Guest
This topic is now closed to further replies.

Announcements



×
×
  • Create New...

Important Information

By using this site, you agree to our Terms of Use.