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.

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, and will share it's functionalities, except reselling the shop.

Placing a spawn egg requires permission node villagermarket.use_spawn_item

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]

Click here for more details

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:

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%'

Last updated