How to get the food amount given to player after eating food from a procedure

Started by Loxxer on

Topic category: Help with modding (Java Edition)

Last seen on 17:06, 10. Nov 2021
Joined Oct 2021
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • MCreator plugins:
  • Comments:
How to get the food amount given to player after eating food from a procedure

I want a procedure to make the vanilla food only give 0.5 hunger bars, but I don't know how to
1. detect when food is eaten (I know you need to use PlayerFinishesUsingItem, but I don't know how to make it only for food)
2. get the food bars that the player got for eating