Note block music in Minecraft, without any actual note blocks.
It really is magic.
With datapack export, you can export your song to a datapack.
After you've exported your song, move the created datapack inside the "datapacks" directory of your world folder, and that's all there is to it!
Now just join your world, and you can:
- Play your song by running:
/function <datapack_name>:play
- Pause your song by running:
/function <datapack_name>:pause
- Stop your song by running:
/function <datapack_name>:stop
Of course you need to have cheats enabled to run these commands.
When exporting, there's also an option that allows nearby players to hear the music too. This way you can be a walking music player!
Datapacks also support more tempo's than note blocks, so you may just find the perfect tempo when exporting as a datapack.