> For the complete documentation index, see [llms.txt](https://gyzer.gitbook.io/legendaryguild-english/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://gyzer.gitbook.io/legendaryguild-english/configuration/gui-configuration/basics-fuction.md).

# Basics Fuction

`Function` is the function type of a custom item under the `customItem` node of the menu\
If not set, it defaults to `none`, meaning **`nothing`** will happen after clicking

**Each menu has the following nodes**

* title：'xx' （this menu title）
* sound：XXX （Sound effects triggered when the menu is opened）
* customItem： （Custom menu items）

In addition to the above nodes, some menus will also have `layout : [x]`&#x20;

### CustomItem node

{% hint style="info" %}

* display ：Item display name
* material
* data
* model：custommodeldata value （1.13+）
* lore：
* slot：The location where the item appears

```
slot: [1,2,3,4,5,6,7,21,22,23,24] = slot: [1-7,21-24]
```

* fuction.type：Item Function Type
* fuction.value：Item Function Value（Optional in some cases：such as **`fuction.type`** is **`cmd`** ）
  {% endhint %}

### Basics Fuction

* close：Click to close the menu
* pre：Click to open the next page （Only partial menus are effective, such as guild list, guild members, membership application, guild stores..）
* next：Click to open the next page （as above）
* back：Click to return to the guild menu
* cmd：After clicking, execute the command for `function. value` setting

{% hint style="success" %}

```

    #cmd:Execute command after clicking
    # - format：
    # - - [player]/spawn 玩家发送指令 & Players send commands
    # - - [op]spawn 玩家以OP权限发送指令 & Players send commands with OP permission
    # - - [console]spawn %player% 从后台执行指令 & Execute commands from the console
    # - - 例子 & For Example：
    # - - - fuction:
    # - - -  type: cmd
    # - - -  value: [player]/spawn
```

{% endhint %}

* none：Nothing happens after clicking
