# SetHunger

TIP

  • setHunger(<player>, <food>, [saturation], [exhaustion])
  • Sets a player's food with the option to also set their saturation and exhaustion.

# Parameters

  • <player> The player to set their hunger as string
  • <food> Player's food as int or float (0 - 20)
  • [saturation] Player's saturation as int or float (0 - 20)
  • [exhaustion] Player's exhaustion as int or float (0 - 5)

# Example

1: setHunger($player$, 20, 20, 5)
2: sendMessage($player$, "You've been fed.")