# Item Restrictions

BackpacksPlus allows for two levels of item restriction:

1. **Global Shulker Box Prevention:**
   * Controlled by the `backpacks.prevent_shulker_boxes` setting in `config.yml`.
   * If `true` (default), no shulker boxes can be placed in *any* BackpacksPlus backpack, regardless of individual backpack definitions.
2. **Per-Backpack `allowed-items` List:**
   * Defined in your `backpacks/*.yml` files for each backpack type using the `allowed-items` key.
   * If this list is present and contains item IDs, only those items can be placed in that specific backpack type.
   * If the list is empty (`allowed-items: []`) or the key is missing, all items are allowed (except shulker boxes if globally prevented).

Players will receive a message if they attempt to place a restricted item into a backpack.


---

# 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://bojarsky-legacy.gitbook.io/backpacksplus-wiki/usage-and-features/item-restrictions.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.
