PlaceableItems icon indicating copy to clipboard operation
PlaceableItems copied to clipboard

Add support for AppleCore

Open Ferdzz opened this issue 8 years ago • 2 comments

Problem description: When eating an item using AppleCore, especially Spice Of Life, the data for special food consumption is stored in the item itself. It should therefore be necessary to rework the TEEdible to support the item itself, and not an artificial eaten variable.

This also means that the effects of the item itself should be applied automatically instead of hardcoded like it is right now.

Getting rid of the eaten variable also means that the problem where you can eat half the food, then relog then eat the other half would be fixed.

Ferdzz avatar Feb 14 '17 04:02 Ferdzz

Has this been resolved?

if (player.canEat(food.canEatWhenFull()) || player.isCreative()) {
    itemStack.onItemUseFinish(worldIn, player);
    player.onFoodEaten(worldIn, itemStack);

The above in EdibleBlockComponent seems to indicate that it should support any modded foods. Additionally, eaten no longer exists (or the edible tile entity for that matter)

2008Choco avatar Feb 06 '20 14:02 2008Choco

It's possible it's already been fixed by the rewrite. Just like #42 we just need to confirm these changes did in fact fix these issues

Ferdzz avatar Feb 06 '20 16:02 Ferdzz