Shops

This file is dedicated to configuring every aspect of the GUI shop.

  • shop: title supports color codes. size must be a multiple of 9.

  • decoration-items: These are purely aesthetic. They have no price and cannot be interacted with. Use them to create borders or fill empty space.

  • items: These are static items that are always for sale. The slot starts from 0 in the top-left corner. commands can be run from the [CONSOLE] or the player. Use {player} as a placeholder for the buyer's name.

  • item-pools: This section is only used if the rotating-market is enabled. display-count determines how many items are randomly picked from the pool. slots defines the possible GUI positions for those items.

Example shops.yml:

shop:
  title: "&8MobCoins Market"
  size: 54

# These items are for decoration and cannot be purchased.
decoration-items:
  black-glass:
    material: "BLACK_STAINED_GLASS_PANE"
    name: " "
    # You can list multiple slots.
    slot: [0, 1, 2, 3, 4, 5, 6, 7, 8]

# These items are always available for purchase.
items:
  diamond-sword:
    material: "DIAMOND_SWORD"
    slot: 20
    price: 500
    name: "&bLegendary Blade"
    lore:
      - "&7A powerful sword for a worthy warrior."
      - ""
      - "&7Price: &6{price} MobCoins"
      - "&7Your Balance: &e{balance}"
    # Commands are optional. If omitted, the item itself is given.
    commands:
      - "[CONSOLE] broadcast {player} just bought a Legendary Blade!"
      - "give {player} diamond_sword{display:{Name:'\"{\\\"text\\\":\\\"Legendary Blade\\\"}\"'}} 1"

# This section is only used if rotating-market is enabled in config.yml.
item-pools:
  rare-items:
    # Randomly picks 2 items from this pool to show in the shop.
    display-count: 2
    # The chosen items can appear in any of these 3 slots.
    slots: [30, 31, 32]
    items:
      netherite-ingot:
        material: "NETHERITE_INGOT"
        price: 1000
        name: "&5Netherite Ingot"
        lore:
          - "&7Price: &6{price}"
      elytra:
        material: "ELYTRA"
        price: 2500
        name: "&dWings of Freedom"
        lore:
          - "&7Price: &6{price}"
      beacon:
        material: "BEACON"
        price: 5000
        name: "&eBeacon of Power"
        lore:
          - "&7Price: &6{price}"

Last updated