GroupeZ Docs
ConfigurationsItems

Custom Items

Define standalone custom items in the items folder and give them to players

Beside the items you display inside menus, zMenu can manage standalone custom items — real items that live in a player's inventory. They are defined in the items/ folder, given out with a command (or from a menu button), and can carry mechanics such as being granted on first join.

Because they are stored with a hidden id, zMenu can also recognise them later and keep them up to date: edit an item's name or lore, reload, and every copy already in players' inventories is rebuilt automatically.

The items/ folder

Custom items are loaded from:

plugins/zMenu/items/

This folder is always active — there is no option to enable or disable it in config.yml. It is created automatically on first start with a default default-items.yml example inside.

  • You can create as many .yml files as you want (e.g. weapons.yml, tools.yml, events.yml) to organise your items.
  • Subfolders are supported: every .yml file found anywhere under items/ is loaded.
  • Each item is identified by an item id — the top-level YAML key. Ids must be unique across all files.

Defining an item

Every top-level key is an item id, and its content uses the exact same format as menu items (see Item Configuration). You can use materials from hooked plugins, components, enchantments, placeholders, translated names, and everything else the item loader supports.

# plugins/zMenu/items/weapons.yml

# "legendary-sword" is the item id
legendary-sword:
  material: DIAMOND_SWORD
  name: "&b&lLegendary Sword"
  lore:
    - "&7A blade of pure power."
  amount: 1
  enchantments:
    - SHARPNESS,5
  flags:
    - HIDE_ENCHANTS
  glow: true

The default file that ships with the plugin shows the minimal structure:

# plugins/zMenu/items/default-items.yml
#<item-id>:
#  name: ... # Same format used for items in menus
#  mechanics:
#    <mechanic-id>:
#      ... # Depending on the mechanic

first-item:
  name: "&aFirst Item"
  lore:
    - "&7This is the first item"
    - "&7in the default items file."

Item options

In addition to every standard item option, custom items accept two extra flags placed directly under the item id.

OptionTypeDefaultDescription
save-owner-in-pdcBooleantrueStore the receiver as the item's owner. Placeholders in the name/lore are then always resolved for that owner (see Owner & placeholders).
skip-item-updateBooleanfalseWhen true, copies already in inventories are never rebuilt on join/reload. Use it for items players may customise and keep as-is.
legendary-sword:
  material: DIAMOND_SWORD
  name: "&b&lLegendary Sword"
  save-owner-in-pdc: true
  skip-item-update: false

Giving items

/zmenu giveitem

Give a custom item to a player with:

/zmenu giveitem <item-id> [player]
  • <item-id> — the id defined in your items/ files (tab-completed automatically).
  • [player] — optional target; defaults to yourself when run in-game.
Permissionzmenu.give.item
Give to yourself/zmenu giveitem legendary-sword
Give to someone else/zmenu giveitem legendary-sword Notch

From a menu button

There is no dedicated "give custom item" action — you hand the item out with a normal command action that runs zmenu giveitem:

buttons:
  claim-reward:
    material: CHEST
    name: "&aClaim your sword"
    slot: 13
    actions:
      - click: LEFT
        type: console_command
        commands:
          - "zmenu giveitem legendary-sword %player%"

Using a console_command action means the command runs from the console, so the clicking player does not need the zmenu.give.item permission themselves.

Keeping items up to date

Custom items are stamped with a hidden id, which lets zMenu manage the copies already sitting in players' inventories. This check runs when a player joins and when you run /zmenu reload (for every online player):

  • Item still exists → it is rebuilt from the current configuration, so edits to the name, lore, enchantments, etc. are applied to existing copies automatically (unless skip-item-update: true).
  • Item id no longer exists (you deleted it from the files) → the hidden tags are stripped and the item is left in the inventory as a plain item.

Edit an item, run /zmenu reload, and online players see the updated version without having to be given a new one.

Owner & placeholders

The behaviour of placeholders inside the name/lore depends on save-owner-in-pdc:

  • save-owner-in-pdc: true (default) — the item is bound to the player it was given to. Placeholders always render for that owner, and updates only happen while the owner is online.
  • save-owner-in-pdc: false — the item is generic. Placeholders render for whoever is currently holding it, and updates use the holder.

Mechanics

An item can be given mechanics — reusable behaviours attached under a mechanics: section. The one available out of the box is itemjoin (grant on first join, lock to a slot, prevent modification):

starter-map:
  material: FILLED_MAP
  name: "&eServer Guide"
  mechanics:
    itemjoin:
      give-first-join: true
      fixed-slot: 8
      prevent-inventory-modification: true

See the dedicated Item Mechanics page for the full list of mechanics and their options.

Next Steps

On this page

GroupeZ MCP

Documentation in your AI

MCP lets your AI search GroupeZ documentation and read current examples to help you configure your plugins.

Read-only · No documentation API key needed

1. Copy the server URL

Transport: HTTP (Streamable HTTP). Authentication: none. Your tool uses its own model and subscription limits.

  1. Open Plugins in ChatGPT on the web, then + → Add custom MCP server.
  2. Name it ‘GroupeZ Documentation’, paste the URL above and choose ‘No authentication’. Create and install the plugin.
  3. In a conversation, type @ and select the plugin before asking. If needed, enable search, get_page and list_pages in its settings.
Official setup guide

3. Ask a question

Use GroupeZ MCP to help me create a zMenu inventory. Search relevant pages, read the examples and cite your sources.
Other clients and troubleshooting

For clients using mcpServers, adapt this example to their format:

{
  "mcpServers": {
    "groupez-docs": {
      "url": ""
    }
  }
}

Available tools are search, get_page and list_pages. Refresh the connector’s tools after updates. If your AI cannot access them, check that the connector is enabled in the conversation and your account allows custom MCP servers. Opening the URL in a browser is not an MCP test.