Links

How to create custom sounds

To create custom sounds you have to open the assets\minecraft\sounds.json file

Example (lightsaber sounds)

These are the lightsaber sounds that are played when player attacks using lightsabers swords (configured in the event)
To play custom sounds check out the events tutorial
If you want to create a sound like a "sword special effect" you can create a custom sound like this:
"sword_special_effect": {
"sounds":[
"new/sword_special_effect"
]
}
Now paste your sound file inside assets\minecraft\sounds\new
Files must be .ogg files, you have to convert them into .ogg if you have .mp3 files

Sound variants

You can also create custom sounds variants (add 3-4 different sounds for the same sound to alternate them randomly).
"sword_special_effect": {
"sounds":[
"new/sword_special_effect1",
"new/sword_special_effect2",
"new/sword_special_effect3"
]
}