| Name | entity changes food level |
| Event Lines | <entity> changes food level |
| Triggers | when an entity's food level changes. |
| Generated Examples | on entity changes food level:
on mob changes food level: |
| Has Player | when the entity that's food level has changed is a player. - this adds switches 'flagged:<flag name>' + 'permission:<node>', in addition to the '<player>' link. |
| Has NPC | when the entity that's food level has changed is an NPC. |
| Switches | item:<item> to only process the event if it was triggered by an item that matches the specified item. |
| Contexts | <context.entity> returns the EntityTag.
<context.food> returns an ElementTag(Number) of the entity's new food level.
<context.item> returns an ItemTag of the item that triggered the event, if any.
|
| Determine | ElementTag(Number) to set the entity's new food level. |
| Cancellable | True - This adds <context.cancelled> and determine 'cancelled' or 'cancelled:false' |
| Has Location | True - This adds the switches 'in:<area>', 'location_flagged:<flag>', ... |
| Synonyms (Search Aid) | player hunger depletes |
| Group | Entity |
| Source | https://github.com/DenizenScript/Denizen/blob/dev/plugin/src/main/java/com/denizenscript/denizen/events/entity/EntityFoodLevelChangeScriptEvent.java#L16 |