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.
Ambient sound has 1 mandatory property and can be configured with 7 optional properties :
Mandatory property :
Optional properties :
Example :
Simply add an ambient sound to the machine :
{
"ambient_sound": "namespace:sound_location"
}
Add a configured ambient sound :
{
"ambient_sound": {
"sound": "namespace:sound_location",
"volume": 2.0,
"pitch": 2.0,
"source": "music"
}
}
Last updated