The Binding of Isaac: Rebirth

The Binding of Isaac: Rebirth

58 个评价
Transformation API
   
奖励
收藏
已收藏
取消收藏
Tags: Lua, Tweaks
文件大小
发表于
更新日期
44.941 KB
2019 年 10 月 7 日 下午 12:10
2022 年 6 月 27 日 下午 4:13
6 项改动说明 ( 查看 )

订阅以下载
Transformation API

在 Mode8fx 的 1 个合集中
Mode8fx's Mods
14 件物品
描述
• 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 条留言
MOTS0 2023 年 2 月 15 日 上午 5:07 
Option to make trinket tags work? Bob's bladder is set up with a bob tag in items_metadata.xml
The_furf_of_July 2022 年 8 月 13 日 下午 10:48 
Still not recommended for Rep?
The_furf_of_July 2022 年 4 月 7 日 下午 3:35 
Crash occurs randomly when entering a room
The_furf_of_July 2022 年 4 月 7 日 下午 3:35 
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  [作者] 2021 年 7 月 11 日 上午 11:49 
The Repentance update is out! From the player's perspective, everything should work the same whether you're playing AB+ or Repentance.
Mode8fx  [作者] 2021 年 7 月 8 日 下午 7:33 
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  [作者] 2021 年 7 月 5 日 上午 8:15 
@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.
JellyWip 2021 年 7 月 4 日 上午 6:26 
Wait what do you mean it works partially with Repentance?
Hajem 2021 年 3 月 29 日 上午 12:19 
Help i can't uninstall this mod before repentence please help me
Lord Messmer 2020 年 1 月 14 日 上午 2:06 
nice vineshroom