Villager Market
  • Overview
  • Renting Shops
  • Shop Spawn Egg
  • Trusted system
  • Collect shop revenue
  • Edit Shop
    • Manage your shop
    • Villager Entity
  • Shop Types
    • Player Shop
    • Admin Shop
  • Commands & Permissions
  • Configuration
  • API
Powered by GitBook
On this page
  • About
  • Obtaining Villager Shop Egg
  • Changing the item appearance

Was this helpful?

Shop Spawn Egg

PreviousRenting ShopsNextTrusted system

Last updated 2 years ago

Was this helpful?

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

Player Shop
here