Comment on page
Fires when a player collects an item from the ground.
if (event.player:getEntity() == nil) then
if (event.itemType == ItemType.GLITCH_TRUMPET) then
The player that is picking up the item.
The type of item that is being picked up by the player.
The amount of the item that is being picked up by the player.
If set to true, the item pickup event will be cancelled.