Binding of Isaac: Rebirth Wiki

A collection of Lua code snippets that can be run directly in the Debug Console to find out otherwise hidden details, leveraging the Modding API functionality.

To use these, simply copy the entire code block and paste it (with Control+V) with the Debug Console open.

Code Description
l for _,v in pairs(Isaac.GetRoomEntities()) do print("Type "..v.Type.."."..v.Variant.."."..v.SubType..", size "..v.Size.." x ("..v.SizeMulti.X..", "..v.SizeMulti.Y..")") end
Displays the type, variant and subtype for all entities in the room, their hitbox sizes and size multipliers. The entity type numbers can be found in the Modding reference.
l for _,v in pairs(Isaac.GetRoomEntities()) do c=v:GetColor(); print(c.R..", "..c.G..", "..c.B.." ("..c.A..") + "..c.RO..", "..c.GO..", "..c.BO) end
Shows all the entities' colors (as RGBA multiplier + RGB offset).
l for _,v in pairs(Isaac.GetRoomEntities()) do f=v:ToFamiliar(); if f ~= nil then print(f.OrbitDistance.X.."/"..f.OrbitDistance.Y) end end
Finds all Isaac's familiars and displays their orbit distances; useful for comparing orbitals' blocking/attacking area.
l local pos = 32; local room = Game():GetRoom(); room:SpawnGridEntity(pos, 14, 7, 1, 0); room:SpawnGridEntity(pos+1, 14, 8, 1, 0); room:SpawnGridEntity(pos+15, 14, 9, 1, 0); room:SpawnGridEntity(pos+16, 14, 10, 1, 0)
Spawns a giant poop. Use debug 11 to determine which pos to use.