# Shop Spawn Egg

## About

If you want your players to be able to create their own shops anywhere they want, the Villager Shop spawn egg is for you!

Villager Shop spawn eggs are stackable and can be sold in shops just like any other item. If you change the item material in the config, every old Villager Shop egg will still work. You can also rename the item in an anvil, and it will still work.&#x20;

To use it, simply place the egg where you want your new Villager Shop. The newly created shop will now be yours forever, unless you abandon it (which will remove the shop entirely). The shop is considered a [Player Shop](/villager-market/shop-types/player-shop.md), and will share it's functionalities, except reselling the shop.&#x20;

{% hint style="warning" %}
Placing a spawn egg requires permission node villagermarket.use\_spawn\_item
{% endhint %}

## Obtaining Villager Shop Egg

Using the following command, you can give any player a specified amount of spawn eggs with set shop and storage size:

```
/vm item give <player> <shopsize> <storagesize> [amount]
```

{% hint style="info" %}
Click [here ](/villager-market/commands-and-permissions.md#give-shop-spawn-egg)for more details
{% endhint %}

## Changing the item appearance

You can change the name, lore and even material of the Villager Shop eggs in the config.yml. Editing any of these properties will **not** cause any older eggs to break:

```yaml
shop_item:
  material: VILLAGER_SPAWN_EGG
  name: '&b&lCreate Villager Shop!'
  lore: #Placeholders: %shop_size%, %storage_size%
    - '&aPlace &7this spawn egg to'
    - '&7create your very own'
    - '&aVillager Shop&7!'
    - ''
    - '&7>> &aShop Size&7: &c%shop_size%'
    - '&7>> &aStorage Size&7: &c%storage_size%'
```


---

# 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://vebjorn-elvekrok.gitbook.io/villager-market/villager-shop-egg.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.
