Sound (Ambient)
Customize the sound the machine makes when running/idling/erroring.
You can define a sound that will play when the machine is in a specific status (corresponding of where you put the property in the appearance json).
The sound must be a OGG file and must be loaded in-game. Sounds are different than models and textures and must be registered to be usable so for using custom sounds you will have either to use a mod that let you add sounds to the game or replace an existing sound with a resource pack and use it's name in the property.
If no sound property is set the machine will just make no sound.
Ambient sound has 1 mandatory property and can be configured with 7 optional properties :
Mandatory property :
Optional properties :
Source
Name : source
Description :
One of Minecraft sound sources :
master
music
record
weather
block
hostile
neutral
player
ambient
voice
The player can adjust any of these sound sources in sound options.
Default : block
blockExample :
The machine's ambient sound will be played as "music" source :
"ambient_sound": {
"source": "music"
}Example :
Simply add an ambient sound to the machine :
Add a configured ambient sound :
Last updated