Defines the Special Diet Ration medical item (special_ration) of the Diseases plugin, a food item with a hunger value of 40 that cures gastritis and restores health when it is eaten or given to the player being looked at with its Give action.

Summary

Methods

Feeds the ration to the player being looked at with "Give", curing their gastritis and healing them.
Lets the item be dropped, with no extra effect.
Cures the player's gastritis, heals them and fires PlayerHealed.

Methods

Feeds the ration to the player being looked at with "Give", curing their gastritis and healing them.

Fires PlayerHealed with the giver as the healer. Returns false when no player is looked at.

Parameters

  • player
  • name

Lets the item be dropped, with no extra effect.

Parameters

  • player
  • position

Cures the player's gastritis, heals them and fires PlayerHealed.

Parameters

  • player
  • itemEntity

Defined in