Replies: 2 comments
-
Working on implementing this perhaps, I'm curious would something like this also work as a separate event? The issue is that this event is for food level changing only, and that doesn't always mean that saturation changes too. |
Beta Was this translation helpful? Give feedback.
-
I guess a new event could be useful in some cases, but that wouldn't be the ideal solution for implementing custom food in my opinion. The food level and saturation are linked together, and i would need to listen to both events to first change the food level, and then the saturation in another event. This would also mean doing the checks to the item twice. Another possible to this would be something like a PlayerEatEvent, which then would provide access to the item, the food level and the saturation. |
Beta Was this translation helpful? Give feedback.
-
Is your feature request related to a problem?
I'm experimenting with custom food items and trying to implement new food types. When listening to the FoodLevelChangeEvent I'm able to modify the resulting food level, but there is no simple way to modify the amount of saturation the player receives.
Describe the solution you'd like.
Adding these two methods to the FoodLevelChangeEvent:
Describe alternatives you've considered.
Listening to the event and doing the saturation calculation on my own, then setting the resulting value after the event has been processed.
Other
No response
Beta Was this translation helpful? Give feedback.
All reactions