> For the complete documentation index, see [llms.txt](https://docs.xandtech.fr/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://docs.xandtech.fr/home/xstash/sacks-module/sack-of-sacks.md).

# Sack of Sacks

The menu where players store their physical sack items — right-click a sack in here (or held in hand) to open its contents.

```yaml
sack-of-sacks:
  title: "&8Sack of Sacks"
  default-slots: 5   # slots a player starts with
  max-slots: 84       # absolute cap, no matter how they got more
```

Its size isn't fixed — it's derived from however many slots the viewing player has currently unlocked, paginated automatically once they've unlocked more than one page's worth.

## Managing slots

Unlike chest count/rows (permission-driven), Sack of Sacks slots are managed directly, per player, independent of any rank permission — suited for one-off grants (quest rewards, compensation, events) rather than a rank-wide perk:

```
/sacks addslots <player> <amount>
/sacks removeslots <player> <amount>
/sacks clearslots <player>
```

All require `xstash.admin`. Also available programmatically via `XStashAPI#addSackOfSacksSlots` for other plugins to grant slots as a reward — see [Developer API](/home/xstash/reference/developer-api.md).

## Live item display

A sack item's icon and lore inside the Sack of Sacks always reflect the owner's **current** tier — it's rebuilt on display, not baked in when last saved, so an upgrade is reflected everywhere the item is held immediately without needing to rewrite every stored copy.


---

# 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 dynamically by asking a question.

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

```
GET https://docs.xandtech.fr/home/xstash/sacks-module/sack-of-sacks.md?ask=<question>&goal=<endgoal>
```

`ask` is the immediate question: it should be specific, self-contained, and written in natural language.
`goal` is optional and describes the broader end goal you are ultimately trying to accomplish on behalf of the user. GitBook uses it to tailor the answer towards what is most useful for that goal.

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.
