# ConsumeItem

```lua
-- Make a player jump twice as high every time they eat a pie item
Events.ConsumeItem(function(event)
    if (event.item == ItemType.PIE) then
        event.player:registerJumpHeightMultiplier("pie_jumps", 2)
    end
end)
```

### Parameters

#### player: [Player](https://docs.easy.gg/scripting/bedwars-scripting/objects/player)

The player that consumed the item.

#### itemType: [ItemType](https://docs.easy.gg/scripting/bedwars-scripting/types/itemtype)

The item that was consumed by the player.

#### cancelled: bool <mark style="color:yellow;">\[modifiable]</mark>

If set to true the item consume will be cancelled.
