# Sound (Interaction)

The `interaction_sound` property can be used to customize which sound the machine will make when the player place/break/hit/step on/fell on it.

There are 2 ways of using this property :&#x20;

### Copying another block

Simply specify a block id to the property and the machine will copy all sounds it make.

You can also use the `namespace:block[property1=value1,property2=value2]` syntax here as some blocks may have different sounds depending on their state.

#### Example

This machine will make the same sound than a netherite block.

```json
"appearance": {
    "interaction_sound": "minecraft:netherite_block"
}
```

### Tweaking sounds individually

The 5 interaction sounds `break`, `place`, `hit`, `fall` and `step` can be defined independently.

You can define them using either :&#x20;

* A block : `namespace:block_id`
* A blockstate : `namespace:block_id[property=value, property2=value2]`
* A sound : `namespace:sound_id`

{% hint style="info" %}
Look at the suggestions given by the `/playsound` command in game to see all available sound ids. You can also add your own sounds.
{% endhint %}

You can also specify a `volume` and `pitch` that will be used when playing the sound.

Default value for both `volume` and `pitch` is 1.0

#### Example

This machine will have the sound of the stone when placed, the grass when broken, and the npc hurt sound when step on.

```json
"appearance": {
    "interaction_sound": {
      "volume": 1.0,
      "pitch": 1.0,
      "place": "minecraft:stone",
      "break": "minecraft:grass",
      "step": "minecraft:entity.villager.hurt"
    }
}
```


---

# 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://frinn.gitbook.io/custom-machinery-1.19/creating-custom-machines/machine-appearance/sound-interaction.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.
