!!MC_POST_ITEM_PICKUP callback
This mod creates a new custom callback that triggers when you get a new item from a pedestal.
How to use:
When adding a callback, choose the callback ModCallbacks.MC_POST_ITEM_PICKUP
It accepts an optional argument CollectibleType, which is the ID of the item you want this to run on
If not specified, the function will run whenever any item is collected
Functions called by this will run with the following arguments:
EntityPlayer – The player that picked up the item
CollectibleType – the ID of the item collected
This function is only triggered when an item is obtained by collecting it from a pedestal and/or shop/devil deal. Using debug commands doesn’t trigger it, although that might be included in later
This mod’s code can also be copied and pasted as-is on any mod you’re developing, and it has checks to prevent conflicts in those cases.
NOTE: This mod modifies the ItemQueue system in order to run, so compatibility with other mods that use that is not guaranteed yet.