> For the complete documentation index, see [llms.txt](https://docs.otherside.xyz/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://docs.otherside.xyz/odk-docs/characters/creating-a-custom-character/creating-a-simple-avatar-collection/setting-up-the-boxie-collection.md).

# Setting Up The Boxie Collection

Since this collection doesn't actually exists we are going to make it ourselves. Feel free to skip this portion and just grab the trait metadata from the resources [Creating A Simple Avatar Collection](https://docs.otherside.xyz/odk-docs/characters/creating-a-custom-character/creating-a-simple-avatar-collection.md#resources).

The Boxie collection only has three different traits categories:

* Head
  * classic box
  * sphere
  * smiley face
* Upper
  * classic red
  * classic blue
  * classic purple
  * metallic red
  * metallic blue
  * metallic purple
  * polka dots
  * stripes
* Lower
  * dark
  * light

Let's make a collection of 100 boxies. This is going to be a very rudimentary collection generation in python.

```python
import random
import json

SEED = 92310
OUTPUT_FILE = "boxie_metadata.json"


"""
List of tuples where the first item is the name of the trait
and the second item is the total supply of that trait.
"""

head = [
	("classic box", 60),
	("sphere", 30),
	("smiley face", 10)
]

upper = [
    ("classic red", 18),
    ("classic blue", 18),
    ("classic purple", 18),
    ("metallic red", 12),
    ("metallic blue", 12),
    ("metallic purple", 12),
    ("polka dots", 6),
    ("stripes", 4),

]

lower = [
	("dark", 60),
	("light", 40)
]

  
random.seed(SEED)

def populate_list(trait_list):
    """
    Create a list of the full population of traits
    """
    
    populated_list = []
  
    for trait_name, trait_count in trait_list:
        populated_list.extend([trait_name for _ in range(trait_count)])

    return populated_list

  
# populate all lists and shuffle them
head_populated = populate_list(head)
random.shuffle(head_populated)
  
upper_populated = populate_list(upper)
random.shuffle(upper_populated)

lower_populated = populate_list(lower)
random.shuffle(lower_populated)

collection = []

for token_id in range(100):
    token_data = {
        "id": token_id,
        "name": f"Boxie {token_id}",
        "image": "https://fake-collection-api.io/images/token_id.jpg",
        "mml": "https://fake-collection-api.io/mml/token_id.jpg",
        "attributes": [
            {"value": head_populated[token_id], "trait_type": "head"},
            {"value": upper_populated[token_id], "trait_type": "upper"},
            {"value": lower_populated[token_id], "trait_type": "lower"},
        ],
    }

    collection.append(token_data)

with open(OUTPUT_FILE, "w") as f:
    json.dump(collection, f, indent=4)

```

You can run this script directly in Blender by:

* Changing the view to the scripting tab

<figure><img src="https://33425813-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FbIBFTVTQoxu1YByrB4tU%2Fuploads%2Fgit-blob-5cd1e477feb1fd4501ed27ea3010605059b47c9e%2FPasted%20image%2020250902093657.png?alt=media" alt=""><figcaption></figcaption></figure>

* Create a new text block by clicking the `New Button`

<figure><img src="https://33425813-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FbIBFTVTQoxu1YByrB4tU%2Fuploads%2Fgit-blob-1831a6e384fe34225489ab30d58b50c1916e63ca%2FPasted%20image%2020250902093802.png?alt=media" alt=""><figcaption></figcaption></figure>

* Paste the script above into the text block, you can change the variable `OUTPUT_FILE` to a location that makes sense for you, like in a folder for this project. Then press the run button.

<figure><img src="https://33425813-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FbIBFTVTQoxu1YByrB4tU%2Fuploads%2Fgit-blob-b9fdc4f008849104809f846b570e56c8f76ebdcf%2FPasted%20image%2020250902094015.png?alt=media" alt=""><figcaption></figcaption></figure>

This should save out a JSON file that is structured like an NFT collection metadata.

{% file src="/files/ECp4duvC0rm0jjh3D40A" %}


---

# Agent Instructions
This documentation is published with GitBook. GitBook is the documentation platform designed so that both humans and AI agents can read, navigate, and reason over technical content effectively. Learn more at gitbook.com.

## Querying This Documentation
If you need additional information that is not directly available in this page, you can query the documentation by asking a question.

Perform an HTTP GET request on the following URL with the `ask` and `goal` query parameters:

```
GET https://docs.otherside.xyz/odk-docs/characters/creating-a-custom-character/creating-a-simple-avatar-collection/setting-up-the-boxie-collection.md?ask=<question>&goal=<user_goal>
```

`ask` is the immediate question: it should be specific, self-contained, and written in natural language.
`goal` is what the user is ultimately trying to achieve, the reason they need the answer. Sharing it helps GitBook give you a better, more relevant answer. A goal is most helpful when it describes the outcome the user wants rather than restating the question. For example, with `ask=how do I create an API token`, a goal like `automate deployments from our CI pipeline` lets GitBook tailor the answer to that use case.

The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
