Defines the Potato item (potato) of the Farming plugin, a food item that restores 5 hunger.
Summary
Methods
OnDrop(player, position)shared
Lets the item be dropped, with no extra effect.
Lets the item be eaten; its hunger and other effects come from the item fields.
Methods
ITEM:OnDrop(player, position)
shared gamemodes/cwhl2rp/plugins/farming/plugin/items/sh_potato.lua:21Lets the item be dropped, with no extra effect.
Parameters
- player
- position
ITEM:OnUse(player, itemEntity)
shared gamemodes/cwhl2rp/plugins/farming/plugin/items/sh_potato.lua:17Lets the item be eaten; its hunger and other effects come from the item fields.
Parameters
- player
- itemEntity