AppleSkin

AppleSkin

236M Downloads

[API] Allow for specifying whether an item can be consumed or not

MerchantPug opened this issue ยท 0 comments

commented

MC: 1.20.2
Loader: Fabric
AppleSkin Version: 2.5.1

Currently, in Origins Fabric, we use custom logic in the edible item power type to allow for any item to become edible if an entity is given a specific type of power.
We are unable to use Fabric's built-in API for this as it is more of a compile time thing for specific items, rather than a general use allowed on every item thing.

The issue is that we are unable to specify whether an item can be consumed or not through the API. So items that aren't usually consumable will never show their hunger/saturation in AppleSkin.

This would also be very useful for cases where an item shouldn't be consumable too, such as for the prevent item use power type.