> For the complete documentation index, see [llms.txt](https://docs.easy.gg/scripting/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://docs.easy.gg/scripting/bedwars-scripting/events/consumeitem.md).

# 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](/scripting/bedwars-scripting/objects/player.md)

The player that consumed the item.

#### itemType: [ItemType](/scripting/bedwars-scripting/types/itemtype.md)

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.
