Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Open
MerchantPug opened this issue Oct 26, 2023 · 0 comments
Open

Comments

@MerchantPug
Copy link

MerchantPug commented Oct 26, 2023

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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant