-
Notifications
You must be signed in to change notification settings - Fork 3
SoundAction v3
Hoid2 edited this page Jan 19, 2022
·
3 revisions
Sound actions make sounds.
They look like:
{
...common fields...
"sound": "",
"category": "",
"position": {},
"volume": 0,
"pitch": 0
}
(common fields are specified in Actions v3)
This is the identifier for the sound to emit. See Common Types v3. You can look here for Vanilla Minecraft values. For example, "ambient.basalt_deltas.additions"
.
This determines what volume category this sound is in (look at the Sound settings in Minecraft's option menu). This is a string.
Types
"MASTER"
"MUSIC"
"RECORDS"
"WEATHER"
"BLOCKS"
"HOSTILE"
"NEUTRAL"
"PLAYERS"
"AMBIENT"
"VOICE"
This is the position of where the sound is played. This is an object.
It looks like:
{
"x": 0,
"y": 0,
"z": 0
}
The volume of the sound. This is a float.
The pitch of the sound. This is a float.