The Binding of Isaac: Rebirth

The Binding of Isaac: Rebirth

119 ratings
Amazing Chest Ahead
   
Award
Favorite
Favorited
Unfavorite
File Size
Posted
Updated
68.798 KB
9 Jan, 2022 @ 3:37am
20 Mar, 2024 @ 1:51am
10 Change Notes ( view )
You need DLC to use this item.

Subscribe to download
Amazing Chest Ahead

Description
This mod aims to meddle a bit with them vanilla chests.

Regular chests now have 5% chance to become wooden chests.

Golden chests now have 5% chance to become old chests.

Red chests now have 25% to drop a cracked key in addition to anything that was inside, and the Red Key is more likely to appear in a red chest now.

Haunted chests, in addition to their regular content, now either drop between half and 2 soul hearts (leaning closer to 1), or a spooky pedestal item from a spooky item pool created specifically for this chest.

Why: I think it's a shame that game has content that is so underutilized. It's almost impossible to see an old chest, wooden chests appear once in a blue moon, and red room is too nice and interesting of a concept to be so rare.

As for the haunted chests, I always hated how they were just worse regular chests, especially with how hard they were to unlock, and how rare they are.
38 Comments
Iris Heart  [author] 20 Mar, 2024 @ 1:52am 
@Guantol thank you, I implemented this change.
Guantol 12 Feb, 2024 @ 4:33am 
The mod can sometimes crash the game on room change:
this is what's written in the log file:
[INFO] - Lua stack trace:
[INFO] - [C](-1): HasCollectible
[INFO] - ...aac Rebirth/mods/amazing_chest_ahead_2713661861/main.lua(130): ?
[INFO] - Caught exception, writing minidump...

I looked at the script and I found a for loop that cycles item Id from 1 to 1000 and passes them to player:HasCollectible().

Unofortunately passing non existant Item Ids to HasCollectible leads to undefined behaviour, at best it returns incorrect results and at worst it leads to a game crash (though rarely).

The for loop at line 127 of the main.lua file should be changed to:
for i = 1, Isaac.GetItemConfig():GetCollectibles().Size -1 do
scrimblo bingus 23 Nov, 2022 @ 5:32pm 
me thinking it's a chest and gets jumpscared by spider
i hate blighttown
Iris Heart  [author] 7 Aug, 2022 @ 2:42am 
I checked the script, and there is nothing wrong with it. It works for me too, without crashing.

I have 3 guesses:
1. You're somehow running an outdated version, in which case uninstall it, launch the game, quit, and re-install;
2. It conflicts with another mod;
3. Actually a subsection of 2, if you have any mod that create items in the starting room, they might be what causing this.
rainy 7 Aug, 2022 @ 12:56am 
My game crashed and I found these in my game log:
[INFO] - Lua stack trace:
[INFO] - [C](-1): HasCollectible
[INFO] - ...aac Rebirth/mods/amazing_chest_ahead_2713661861/main.lua(130): ?
[INFO] - Caught exception, writing minidump...
Viewbob 1 May, 2022 @ 1:30pm 
i think the old chest feature should be removed or given a heavily reduced chance as locked chests appear kinda often and also since it could contain a really good item and even an angel room item it could be really op
Iris Heart  [author] 15 Mar, 2022 @ 8:03am 
Yeah, it gave me a dupe of the item I already had. It seems the issue is on your end.
Iris Heart  [author] 15 Mar, 2022 @ 7:51am 
I mean, I didn't make it to be this way, it's just my first guess how the game did it on it's own. I would think it would just spawn a dupe of the held item regardless, but I really don't know how can it spawn a Crooked Penny. I just opened a bunch of haunted chests and they all gave me items from the haunted pool. Did you have chaos? Do you have any mods that mess with item pedestals in general?
Standing Cirno Fumo 15 Mar, 2022 @ 7:47am 
Not to my knowledge, but replacing items you already had with random stuff feels like a bad way of handling it before the entire pool is exhausted
Iris Heart  [author] 15 Mar, 2022 @ 7:31am 
Hm... weird. See, items are added into item pool by ID. I just checked, and Crooked Penny ID is definitely not in the pool. So at the moment I don't know how this could've happen. When it happened, did you already have any spooky ghost related items on you?