> For the complete documentation index, see [llms.txt](https://jpprison.gitbook.io/jpprison-docs/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://jpprison.gitbook.io/jpprison-docs/pouches-pouches.md).

# Pouches (/pouches/)

**Selection modes:**

* `WEIGHTED_RANDOM` — Picks N distinct loots with probability proportional to each loot's weight.
* `INDEPENDENT_ROLLS` — Each loot has its own % chance; several or none can be awarded.

#### Example: common.yml

```
DisplayName: "Common Pouch"
RarityColor: "&7&l"
Item:
  Material: CHEST
  Lore:
    - "&7Right-click on the ground to open."
    - "&7Contains common rewards."
SelectionMode: WEIGHTED_RANDOM
LootsToGive: 2
MinLootsIndependent: 0
Animation:
  DurationTicks: 50
  ItemCount: 6
Loots:
  tokens_small:
    Weight: 10
    DisplayName: "&e500 Tokens"
    RarityLabel: "&7COMMON"
    Commands:
      - "jpprison givetokens {player} 500"
  iron_blocks:
    Weight: 8
    GiveMaterial: IRON_BLOCK
    GiveAmount: 4
    DisplayName: "&f4x Iron Block"
    RarityLabel: "&7COMMON"
```

#### Example: legendary.yml (INDEPENDENT\_ROLLS)

```
DisplayName: "Legendary Pouch"
RarityColor: "&6&l"
SelectionMode: INDEPENDENT_ROLLS
LootsToGive: 1
MinLootsIndependent: 2
Loots:
  tokens_huge:
    Chance: 60
    DisplayName: "&e25000 Tokens"
    Commands:
      - "jpprison givetokens {player} 25000"
  mixed_pet:
    Chance: 15
    DisplayName: "&dMixed Pet Unlock"
    Commands:
      - "jpprison givepet {player} mixed"
  multiplier_reward:
    Chance: 20
    DisplayName: "&dx3 Tokens (5 min)"
    Commands:
      - "jpprison multiplier player {player} tokens 3 300"
```


---

# 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://jpprison.gitbook.io/jpprison-docs/pouches-pouches.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.
