SiliconGhetto Engine API
    Preparing search index...

    Function createItemsAPI

    • Returns { register(key: string, opts?: ItemRegOpts): number; id(key: string): number }

      • register: function
        • Register a custom item type (food, materials, etc.).

          Parameters

          • key: string

            Unique identifier for this item (e.g. "diamond", "cooked_fish")

          • opts: ItemRegOpts = {}

            Item configuration (display name, color, stack size, edible properties)

          Returns number

          The item type ID, used in inventory and recipe functions

      • id: function
        • Look up the numeric ID for a registered item by its key.

          Parameters

          • key: string

            Item key (e.g. "diamond")

          Returns number

          Item type ID, or 0 if not found