local function onLootReceived(eventCode, lootedBy, itemLink, quantity, itemSound, lootType, lootedBySelf) local itemType = GetItemLinkItemType(itemLink) if itemType == ITEMTYPE_RECIPE then ... endend