# Chest Shops

## How to create a shop

{% stepper %}
{% step %}

### Run the command

**Use the command: `/chestshop create`**

This will create a chest infront of you

<figure><img src="https://2264667561-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FkDhjqcTDxLyJjpmZNG4V%2Fuploads%2FSqwkA4FGY8iJ11nutgtd%2Fimage.png?alt=media&#x26;token=620bdb7c-4cbb-4fa1-84fe-58e384914728" alt="" width="347"><figcaption></figcaption></figure>
{% endstep %}

{% step %}

### Right-Click the shop

Right-clicking  the shop to manage it!

<figure><img src="https://2264667561-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FkDhjqcTDxLyJjpmZNG4V%2Fuploads%2FYwSftl3CFgaI4kQYHWxD%2Fimage.png?alt=media&#x26;token=2c20e905-77d5-4f7e-b0f0-a690cb868a01" alt="" width="290"><figcaption></figcaption></figure>

### Manage options:

* Delete shop
  * Delete the current shop, make sure to collect all items
* Teleport to shop
  * Set a teleport to the shop players can use<br>
* Buy enable/disable
  * &#x20;This allows player to **BUY** items from the chest
* Sell enable/disable:
  * This allows players to SELL items <sup><sub>same item you are selling<sub></sup> TO the shop
* Set item
  * Set the item you wish to sell in store.&#x20;
  * It will automatically open your Inventory for you to select the item, this will not remove the item from your inventory.
* Add stock
  * Left click will automatically add 1 of the item
  * Right-Click will add 16 of an item&#x20;
  * Shift Click will add all items matching to the sell item from your inventory
* Remove Stock
  * Left click will  remove 1 of the item
  * Right-Click will remove 16 of an item&#x20;
  * Shift Click will remove all stock<mark style="background-color:$danger;">**, be sure to have enough space in your inventory.**</mark>
    {% endstep %}
    {% endstepper %}

### FAQ

## ❓ Chest Shop FAQ

<details>

<summary>Why didn’t a chest spawn when I used /chestshop create?</summary>

The chest will spawn **directly in front of you** when the command is run.

Make sure:

* There is **empty space in front of you**
* You are **not looking at a blocked area**

If the space is blocked, the shop will not be created.

</details>

<details>

<summary>How many shops can I create?</summary>

Players can create **up to 5 Chest Shops** by default.

In the future, **Shop Limit Vouchers** will be available that allow players to increase their shop limit.

</details>

<details>

<summary>Can I move my shop after creating it?</summary>

No. Shops cannot be moved once they are created.

If you want the shop somewhere else:

1. Remove all stock from the shop
2. Delete the shop
3. Create a new shop in the new location

</details>

<details>

<summary>What happens if I delete my shop?</summary>

Deleting a shop **removes the chest permanently**.

⚠ **Important:**\
Make sure to **collect all items and stock before deleting the shop**, otherwise they may be lost.

</details>

<details>

<summary>Why can't players buy items from my shop?</summary>

Make sure **Buy is enabled** in the shop settings.

If **Buy is disabled**, players will not be able to purchase items from the shop.

</details>

<details>

<summary>Why can't players sell items to my shop?</summary>

Check that **Sell is enabled**.

Sell mode allows players to **sell the same item your shop sells back to the shop**.

</details>

<details>

<summary>Can players sell different items to my shop?</summary>

No.

Players can only sell **the exact same item that your shop is configured to sell**.

</details>

<details>

<summary>Why does my shop say it has no stock?</summary>

Your shop must contain items in its **stock inventory**.

Use **Add Stock** to add items to your shop.

</details>

<details>

<summary>Does adding stock remove items from my inventory?</summary>

Yes.

Adding stock **moves items from your inventory into the shop storage**.

</details>

<details>

<summary>What happens if my inventory is full when removing stock?</summary>

If your inventory is full, the system may **fail to remove items from the shop**.

Always make sure you **have enough space in your inventory** before removing stock.

</details>

<details>

<summary>Can I change the item my shop sells later?</summary>

Yes.

You can use **Set Item** to change the product your shop sells.

However, it is recommended to **remove any existing stock first** before changing the item.

</details>

<details>

<summary>What does "Teleport to Shop" do?</summary>

This feature allows you to set a **teleport location for your shop**.

Players can use this teleport to **quickly travel to your store**.

</details>

<details>

<summary>Can I sell multiple items in one shop?</summary>

No.

Each shop can **only sell one item type at a time**.

If you want to sell multiple items, you will need **multiple shops**.

</details>

### TIPS

{% hint style="info" %}

#### You can sell Shulkers with items inside

If  you wish to sell "bundles" the items have to be place exaclty in the same position as the "Selling item"

You can sell armor sets with this, by using the same mechanism as describe above.
{% endhint %}

{% hint style="info" %}

#### Do not sell enchanted items

The shop does not sell items enchated, but will purchase them. if you remove the items from the shop they will be unenchanted.
{% endhint %}


---

# 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://wiki.cobblemonislands.com/features/chest-shops.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.
