The Binding of Isaac: Rebirth

The Binding of Isaac: Rebirth

57 ratings
Transformation API
   
Award
Favorite
Favorited
Unfavorite
Tags: Lua, Tweaks
File Size
Posted
Updated
44.941 KB
Oct 7, 2019 @ 12:10pm
Jun 27, 2022 @ 4:13pm
6 Change Notes ( view )

Subscribe to download
Transformation API

In 1 collection by Mode8fx
Mode8fx's Mods
14 items
Description
• Preconfigured for 50+ items
• Recommended for AB+ only (see description)

Are you tired of modded books not counting toward Bookworm? Shouldn't new mushrooms give Fun Guy? The Transformation API (actually it's a library, but too late to change the name now) adds transformations to over 50 modded items and makes it very easy to give a transformation to your own item! You can also give additional transformations to official items in case you think Brimstone is underpowered and want it to also count toward Guppy. It even adds the new transformation to the item's External Item Description.

Items currently preconfigured in this mod
Here is a list of all modded items currently preconfigured in the library.[pastebin.com] If you have any of these items installed, enabling this mod is all you have to do to make these items count toward transformations. If you know of a modded item that would make sense to count toward a transformation, leave a comment with the item's exact name as it appears in-game and I might add it. Or if you want to add an item yourself...

How to add a transformation to your own item
For Repentance players, the current modding API allows you to add a transformation to your item via the official "tags" tag in items.xml. For everyone else...
Adding a transformation to your own item (or an official item, or someone else's modded item) is very easy. All you have to do is add a single line of code to your mod's MC_POST_PLAYER_INIT callback:

if TransformationAPI ~= nil then TransformationAPI:addItemsToTransformation(TRANSFORMATION, {ITEM_1, ITEM_2, ETC}) end
... And that's it! (see examples below)

Replace TRANSFORMATION with the name of the transformation (all transformations are supported except Adult and Stompy since they require pills; also, though Super Bum is technically supported, it is untested and not recommended due to how Super Bum works):
"beelzebub", "guppy", "bob", "conjoined", "funguy", "leviathan", "ohcrap", "seraphim", "spun", "superbum", "yesmother", "bookworm", "spiderbaby"

And replace {ITEM_1, ITEM_2, ETC} with an array containing the IDs of each item you want to add (even if you're only adding one item, it still needs to be in an array).

For example, if you wanted Little Gish to count toward the Spider Baby transformation, you would include the following line:
if TransformationAPI ~= nil then TransformationAPI:addItemsToTransformation("spiderbaby", {Isaac.GetItemIdByName("Little Gish")}) end
Or if you wanted to add Seraphim to both Mini Mush and a modded item called Lucky Sevens (which is made up), you would include this line:
if TransformationAPI ~= nil then TransformationAPI:addItemsToTransformation("seraphim", {Isaac.GetItemIdByName("Mini Mush"), Isaac.GetItemIdByName("Lucky Sevens")}) end

Repentance Disclaimer
This mod has been partially updated for Repentance; however, it is not recommended. It was made back when adding a transformation to an item was a complicated and tedious process, but Repentance lets you simply add a tag to an item corresponding to a transformation, making this mod obsolete. It probably works fine with Repentance (albeit single player-only), but I recommend that you only use this mod if you are playing AB+.
15 Comments
MOTS0 Feb 15, 2023 @ 5:07am 
Option to make trinket tags work? Bob's bladder is set up with a bob tag in items_metadata.xml
The_furf_of_July Aug 13, 2022 @ 10:48pm 
Still not recommended for Rep?
The_furf_of_July Apr 7, 2022 @ 3:35pm 
Crash occurs randomly when entering a room
The_furf_of_July Apr 7, 2022 @ 3:35pm 
I keep crashing randomly while holding mom's locket (random mom item), and this is one of the few mods I think might be causing it.
Mode8fx  [author] Jul 11, 2021 @ 11:49am 
The Repentance update is out! From the player's perspective, everything should work the same whether you're playing AB+ or Repentance.
Mode8fx  [author] Jul 8, 2021 @ 7:33pm 
The Repentance update will take a bit longer than expected since Repentance pretty much broke the entire mod. Thankfully, it also introduced an official transformation tagging system in the new modding API that gave me an idea for a workaround.

For now, I just released a minor update that polishes/fixes a few things and adds built-in compatibility with a few more modded items.
Mode8fx  [author] Jul 5, 2021 @ 8:15am 
@Judelnutil Combining modded items and Repentance items to make a transformation currently doesn’t work since each item has to be added manually. Updating it will be easy (and should be done in the next few days), I just haven’t actually done it yet.
JudeInutil Jul 4, 2021 @ 6:26am 
Wait what do you mean it works partially with Repentance?
Hajem Mar 29, 2021 @ 12:19am 
Help i can't uninstall this mod before repentence please help me
Lord Messmer Jan 14, 2020 @ 2:06am 
nice vineshroom