# Backpacks

**Config file**

* `config/dawncosmetics/cosmetics/backpacks.json`

## What Goes In A Backpack Entry

* `name` for the menu name
* `permission` for the access node
* `model_data` if `icon` and `item` should share one custom model data value
* `icon` for the menu item
* `item` for the backpack look
* `model` for an optional model setup
* `price` for shop price
* `rarity` for shop rarity
* `unlocked_lore` for lore when unlocked
* `locked_lore` for lore when locked

## Example

```json
{
  "backpacks": {
    "traveler": {
      "name": "Traveler Pack",
      "permission": "dawncosmetics.backpack.traveler",
      "model_data": 4101,
      "icon": {
        "item": "minecraft:leather_chestplate"
      },
      "item": {
        "item": "minecraft:leather_chestplate"
      }
    }
  }
}
```

## Riding Setting

Backpack riding behavior is controlled in `config.json`

```json
"features": {
  "hideBackpackWhileRiding": true
}
```

When this is `true`, backpacks hide on Cobblemon mounts and come back after the player is properly off the mount

## Good To Know

* use `model_data` when both `icon` and `item` should match
* set custom values directly on `icon` and `item` if you want them to look different


---

# Agent Instructions: Querying This Documentation

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

Perform an HTTP GET request on the current page URL with the `ask` query parameter:

```
GET https://dawnshade.gitbook.io/dawnshade-docs/docs/dawn-cosmetics/summary/cosmetic-types/backpacks.md?ask=<question>
```

The question should be specific, self-contained, and written in natural language.
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.
