The Binding of Isaac: Rebirth

The Binding of Isaac: Rebirth

55 个评价
!!MC_POST_ITEM_PICKUP callback
   
奖励
收藏
已收藏
取消收藏
Tags: Lua, Tweaks
文件大小
发表于
7.338 KB
2021 年 8 月 17 日 下午 7:25
1 项改动说明 ( 查看 )

订阅以下载
!!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.

3 条留言
Plastic Shitlord 2023 年 7 月 15 日 下午 12:27 
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ö 2023 年 7 月 7 日 上午 2:21 
*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 2023 年 5 月 30 日 下午 2:26 
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