-- 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:
The player that consumed the item.
itemType:
The item that was consumed by the player.
cancelled: bool [modifiable]
If set to true the item consume will be cancelled.