Defines the Popcorn item (popcorn) of the Farming plugin, a food item that restores 25 hunger and leaves an
empty_carton.
Summary
Methods
OnDrop(player, position)shared
Lets the item be dropped, with no extra effect.
Gives the player back an
empty_carton.Methods
ITEM:OnDrop(player, position)
shared gamemodes/cwhl2rp/plugins/farming/plugin/items/sh_popcorn.lua:23Lets the item be dropped, with no extra effect.
Parameters
- player
- position
ITEM:OnUse(player, itemEntity)
shared gamemodes/cwhl2rp/plugins/farming/plugin/items/sh_popcorn.lua:18Gives the player back an empty_carton.
Parameters
- player
- itemEntity