Skip to content

Class "ItemConfig"⚓︎

Functions⚓︎

Get·Card ()⚓︎

const ItemConfig Card GetCard ( Card ID )⚓︎


Get·Cards ()⚓︎

const CardList GetCards ( )⚓︎

Bugs

Calling Get() in this list does not return usable userdata, rendering it useless for that purpose.


Get·Collectible ()⚓︎

const ItemConfig Item GetCollectible ( int ID )⚓︎

Returns the Itemobject of a given CollectibleID.

Example Code

This Code gets the highest possible collectibleid including modded items. It uses the Binary Search algorithm to do it. Using GetCollectible(): (recommended!)

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
13
function GetMaxCollectibleID()
    local id = CollectibleType.NUM_COLLECTIBLES-1
    local step = 16
    while step > 0 do
        if Isaac.GetItemConfig():GetCollectible(id+step) ~= nil then
            id = id + step
        else
            step = step // 2
        end
    end

return id
end
Using GetCollectibles(): (Crashes on Mac OS)

1
2
3
function GetMaxCollectibleID()
    return Isaac.GetItemConfig():GetCollectibles().Size -1
end

Get·Collectibles ()⚓︎

const ItemList GetCollectibles ( )⚓︎

Returns the List of all Collectibles.

Example Code

This Code gets the highest possible collectibleid including modded items.

1
2
3
function GetMaxCollectibleID()
    return Isaac.GetItemConfig():GetCollectibles().Size -1
end

Bugs

Calling Get() in this list does not return usable userdata, rendering it useless for that purpose.


Get·Costumes ()⚓︎

const CostumeList GetCostumes ( )⚓︎

Bugs

The list returned by this function is always empty, rendering it useless.


Get·Null·Item ()⚓︎

const ItemConfig Item GetNullItem ( int ID )⚓︎


Get·Null·Items ()⚓︎

const ItemList GetNullItems ( )⚓︎

Bugs

Calling Get() in this list does not return usable userdata, rendering it useless for that purpose.


Get·Pill·Effect ()⚓︎

const ItemConfig PillEffect GetPillEffect ( PillEffect ID )⚓︎


Get·Pill·Effects ()⚓︎

const PillList GetPillEffects ( )⚓︎

Bugs

Calling Get() in this list does not return usable userdata, rendering it useless for that purpose.


Get·Trinket ()⚓︎

const ItemConfig Item GetTrinket ( int ID )⚓︎


Get·Trinkets ()⚓︎

const ItemList GetTrinkets ( )⚓︎

Bugs

Calling Get() in this list does not return usable userdata, rendering it useless for that purpose.


Is·Valid·Collectible ()⚓︎

static boolean IsValidCollectible ( CollectibleType ID )⚓︎

Function to check if a given item id is a valid collectible id (aka. this item exists). Returns True when it exists and False when it doesnt.

Example Code

This Code checks, if the item "Sad Onion" (ID: 1) exists.

1
ItemConfig.Config.IsValidCollectible(1)

Bugs

This function returns false for modded items! Use itemConfig:GetCollectible() instead.


Should·Add·Costume·On·Pickup ()⚓︎

static boolean ShouldAddCostumeOnPickup ( ItemConfig Item Config )⚓︎



Last update: June 9, 2021