Binding of Isaac - Afterbirth+ Lua Reference/Guide
XML File documentation

The game uses .XML files to store alot of ingame contents in an easily readable and editable format.

achievements.xml

Resource-Folder Placing this file in your mods "resource" folder will replace the original file.
Content-Folder Placing this file in your mods "content" folder has no effect!

This file is used to store general informations about the ingame achievements.

Variable-Name Possible Values Description
idintIngame-Id of the Achievement
textstringDescription
gfxstring.png file path based on the "gfxroot" attribute of the "achievements" xml root.
steam_namestringName of achievement on Steam
steam_descriptionstringDescription (not used)
steam_iconstringIcon name of the achievement sprite for Steam.

ambush.xml

Resource-Folder (not tested)Using this file in a resource folder of a mod is not tested yet.
Content-Folder (not tested)Using this file in a content folder of a mod is not tested yet.

This file is used to store spawning patterns for the wave system of Ambush rooms.

babies.xml

Resource-FolderUsing this file in a resource folder and modifying it can cause crashes.
Content-Folder (not confirmed)Using this file in a content folder of a mod is not tested yet.

This file is used to store informations about coop-babies.

Placing this file in a resource folder of a mod and removing entries causes crashes.

backdrops.xml

Resource-Folder (not tested)Using this file in a resource folder of a mod is not tested yet.
Content-Folder (not tested)Using this file in a content folder of a mod is not tested yet.

bosscolors.xml

Resource-Folder (not tested)Using this file in a resource folder of a mod is not tested yet.
Content-Folder (not tested)Using this file in a content folder of a mod is not tested yet.

bossportraits.xml

Resource-Folder (not tested)Using this file in a resource folder of a mod is not tested yet.
Content-Folder (not tested)Using this file in a content folder of a mod is not tested yet.

challenges.xml

Resource-FolderUsing this file in a resource folder of a mod will override the original.
Content-FolderUsing this file in a content folder of a mod adds new challenges.

Used to store all challenges and some of their attributes.

Placing this file in a resource folder of a mod will override the original.

Placing this file in a content folder of a mod will add a new Custom challenge.

Variable-Name Possible Values Description
idintIngame-Id of the Challenge (Not needed for Content Folder)
namestringName of the Challenge
startingitemsstring listComma separated (nospace) item ids that will be added at the start.
startingtrinketsstring listcomma separated (nospace) trinket ids that will be added at the start (max 2)
startingpillstring liststartingpill = effect id of the starting pill (-1 for no pill | default))
playertypestringplayer type id (0 for Isaac | default). Custom characters cant be defined this way! Use LUA code instead.
endstagestringthe last stage of the challenge (use LevelStage internal ids)
roomfilterstring listlist of room ids to not be generated in challenge [Not all room ids can be used] (NORMAL - 1, Shop - 2, Error - 3, Treasure - 4, Boss - 5, Miniboss - 6, Secret - 7, SuperSecret - 8, Arcade - 9, Curse - 10, Challenge - 11, Library - 12, Sacrifice - 13, Devil - 14, Angel - 15, Dungeon - 16, Bossrush - 17, Isaacs - 18, Barren - 19, Chest - 20, Dice - 21, BMarket - 22).
cursefilterstringbitmask for curses to be removed (Darkness = 1, Labyrinth = 2, Lost = 4, Unknown = 8, Cursed = 16)
getcursestringbitmask for curses to be forced (Same id's as curse filter)
achievementsstring listlist of achievement ids that are required to be able to play the challenge
altpathboolalternative floor for light/dark path (isaac/satan)
canshootbooldetermines if player can shoot (true | default)
redhpintAdd red hp to the base of the choosen character. 2 = 1 Heart. Negative numbers possible
maxhpintAdd red hp containers to the base of the choosen character. 2 = 1 Heartcontainer. Negative numbers possible
soulhpintAdd soul hp containers to the base of the choosen character. 2 = 1 Heartcontainer
blackhpintAdd black hp containers to the base of the choosen character. 2 = 1 Heartcontainer
coinsintAdd starting coins
maxdamageboolMax. damage actived (clamps at min 100) or deactivated
adddamagefloat+ damage up
minfireratefloatminimal fire rate or more
minshotspeedboolminimal shot speed actived or deactivated
bigrangeboolEnable high starting range value
difficultyboolgame difficulty (0 - normal | default, 1 - hard | 2 - Greed | 3 - Greedier) Greed and greedier mode work, but when killing Ultra Greed, the big Chest spawns, instead of a trophy
megasatanboollast boss is megasatan. Adds the Key to the player.

costumes2.xml

Resource-FolderUsing this file in a resource folder of a mod will override the original.
Content-FolderUsing this file in a content folder of a mod adds new Costumes.

Defines Costumes informations.

Placing this file in a resource folder of a mod will override the original.

Placing this file in a content folder of a mod will add a new Costumes. See the Tutorial on "Adding Costumes" for more informations.

Variable-Name Possible Values Description
idintIngame-Id of the Costume. Will be overridden by the game when file is in content folder.
anm2pathstringPath to the .anm2 file
typestringType of the costume. Available: none | passive | active | familiar | trinket
priorityintPriority of the costume. higher number means higher priority
overwriteColorboolDefine if a costume overrides the body color of the character (default: false)
isFlyingboolDefine if a costume displays a flying character (default: false)
skinColorintDefine what skincolor that costume has. (default: 0)
hasSkinAltboolDefine if a costume has alternative versions for all other the skin colors (default: false)
hasOverlayboolDefine if a costume has an overlayeffect (default: false)

curses.xml

Resource-FolderUsing this file in a resource folder of a mod renames curses.
Content-FolderUsing this file in a content folder of a mod adds new curses.

Stores the names and ids of the available curses.

Placing this file inside a mods resources folder will rename curses.

Placing this file in a content folder of a mod will add a new Curse. The new curse must be applied using lua, since it cant be encountered normally!

Variable-Name Possible Values Description
idintIngame-Id of the Curse. Will be overridden by the game when file is in content folder.
namestringName of the Curse

cutscenes.xml

Resource-Folder (not tested)Using this file in a resource folder of a mod is not tested yet.
Content-Folder (not tested)Using this file in a content folder of a mod is not tested yet.

entities2.xml

Resource-Folder (not tested)Using this file in a resource folder of a mod is not tested yet.
Content-Folder (not tested)Using this file in a content folder of a mod is not tested yet.

fortunes.txt

Resource-Folder (not tested)Using this file in a resource folder of a mod is not tested yet.
Content-Folder (not tested)Using this file in a content folder of a mod is not tested yet.

fxlayers.xml

Resource-Folder (not tested)Using this file in a resource folder of a mod is not tested yet.
Content-Folder (not tested)Using this file in a content folder of a mod is not tested yet.

giantbook.xml

Resource-Folder (not tested)Using this file in a resource folder of a mod is not tested yet.
Content-Folder (not tested)Using this file in a content folder of a mod is not tested yet.

itempools.xml

Resource-Folder (not tested)Using this file in a resource folder of a mod is not tested yet.
Content-Folder (not tested)Using this file in a content folder of a mod is not tested yet.

items.xml

Resource-Folder (not tested)Using this file in a resource folder of a mod is not tested yet.
Content-Folder (not tested)Using this file in a content folder of a mod is not tested yet.

minibosses.xml

Resource-Folder (not tested)Using this file in a resource folder of a mod is not tested yet.
Content-Folder (not tested)Using this file in a content folder of a mod is not tested yet.

music.xml

Resource-Folder (not tested)Using this file in a resource folder of a mod is not tested yet.
Content-Folder (not tested)Using this file in a content folder of a mod is not tested yet.

nightmares.xml

Resource-FolderUsing this file in a resource folder of a mod will override the original.
Content-FolderUsing this file in a content folder of a mod adds new nightmares.

Used to store all animation paths to the nightmares (dream sequence between stage transitions)

Placing this file in a resource folder of a mod will override the original.

Placing this file in a content folder of a mod will add new nightmares.

Variable-Name Possible Values Description
anm2stringPath to the .anm2 file of the nightmare

players.xml

Resource-Folder (not tested)Using this file in a resource folder of a mod is not tested yet.
Content-Folder (not tested)Using this file in a content folder of a mod is not tested yet.

pocketitems.xml

Resource-Folder (not tested)Using this file in a resource folder of a mod is not tested yet.
Content-Folder (not tested)Using this file in a content folder of a mod is not tested yet.

preload.xml

Resource-Folder (not tested)Using this file in a resource folder of a mod is not tested yet.
Content-Folder (not tested)Using this file in a content folder of a mod is not tested yet.

rules.xml

Resource-Folder (not tested)Using this file in a resource folder of a mod is not tested yet.
Content-Folder (not tested)Using this file in a content folder of a mod is not tested yet.

seedmenu.xml

Resource-Folder (not tested)Using this file in a resource folder of a mod is not tested yet.
Content-Folder (not tested)Using this file in a content folder of a mod is not tested yet.

seeds.xml

Resource-Folder (not tested)Using this file in a resource folder of a mod is not tested yet.
Content-Folder (not tested)Using this file in a content folder of a mod is not tested yet.

sounds.xml

Resource-Folder (not tested)Using this file in a resource folder of a mod is not tested yet.
Content-Folder (not tested)Using this file in a content folder of a mod is not tested yet.

stages.xml

Resource-Folder (not tested)Using this file in a resource folder of a mod is not tested yet.
Content-Folder (not tested)Using this file in a content folder of a mod is not tested yet.

translations.xml

Resource-Folder (not tested)Using this file in a resource folder of a mod is not tested yet.
Content-Folder (not tested)Using this file in a content folder of a mod is not tested yet.