đŊ Jukebox Song
caution
Due to the fact that Minecraft's registry becomes immutable once registered, you will need to rejoin the server in order to apply any new modifications.
jukebox_songs:
default:credits_music:
sound: minecraft:music.credits
length: 100.0 # music length in seconds
description: "Credits"
comparator_output: 15
range: 32
Just add the minecraft:jukebox_playable component, and your item becomes a playable music disc
items:
default:music_stick:
material: stick
data:
jukebox_playable: default:credits_music
If you don't know how to customize a sound, please refer to this page.