The Binding of Isaac: Rebirth

The Binding of Isaac: Rebirth

54 ratings
!!MC_POST_ITEM_PICKUP callback
   
Award
Favorite
Favorited
Unfavorite
Tags: Lua, Tweaks
File Size
Posted
7.338 KB
17 Aug, 2021 @ 7:25pm
1 Change Note ( view )

Subscribe to download
!!MC_POST_ITEM_PICKUP callback

Description
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.

3 Comments
Plastic Shitlord 15 Jul, 2023 @ 12:27pm 
i can also glare at the other comment and confirm everything he says: i don't really care about the devil deal cheese, as i really enjoy not having to wait until the pickup animation ends so i can pick the other stuff up (soul hearts, keys etc.), but the inability to void items can be inconvenient.
Snö 7 Jul, 2023 @ 2:21am 
*glaring at the other comment* love it when end users install stuff that is supposed to be for mod developers and then complain when it doesn't do anything that helps them. Like gee it's almost like it's not for you (also the thing you're claiming it does is just not true my guy the mod simply doesn't have that effect)
Amphibious 30 May, 2023 @ 2:26pm 
breaks picking up items,u get them instantly,so you can`t cheese devildeals or void items when picking them up. this is kinda shite