# 音乐唱片

### 第一步 - 创建声音

{% content-ref url="/pages/QjnY6o2WPNYqZSStEpw0" %}
[声音](/chinese/cha-jian-shi-yong-fang-fa/adding-content/adding-sounds.md)
{% endcontent-ref %}

### 第二步 - 创建唱片

在你的命名空间中创建一个新物品，这将是你的音乐唱片：

```yaml
  music_disc_cdk_sunday:
    display_name: display-name-music_disc_cdk_sunday
    permission: music_disc_cdk_sunday
    lore:
    - '&7Cdk - Sunday'
    resource:
      material: STICK
      generate: true
      textures:
      - item/music_disc_cdk_sunday.png
    behaviours:
      music_disc:
        song:
          name: my_sounds:music_disc.cdk_sunday
          description: Cdk - Sunday
```

如你所见，我添加了一种特殊行为，称为 `music_disc`.\
这将告诉 Spigot 服务器这是一个自定义音乐唱片。\
**name**是将要播放的声音，是你在[第一步](#step-1-create-the-sound)添加的。


---

# Agent Instructions: Querying This Documentation

If you need additional information that is not directly available in this page, you can query the documentation dynamically by asking a question.

Perform an HTTP GET request on the current page URL with the `ask` query parameter:

```
GET https://itemsadder.devs.beer/chinese/cha-jian-shi-yong-fang-fa/adding-content/music-disc.md?ask=<question>
```

The question should be specific, self-contained, and written in natural language.
The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
