Currently, mapmakers can include custom music with their creations in the form of resource packs. Unfortunately, mapmakers have little to no control over when this music plays.
If a mapmaker wants to play custom music, they must use the /playsound command, which does not actively follow the player's location and can be buggy.
A /playmusic command can help alleviate this issue by implementing Minecraft's perfectly good music system in a way that mapmakers can control.
The /playsound command can play sounds that are in the Sounds.json file.
A /playmusic command could use a similar JSON file for its music, perhaps Music.json or something of that sort.
The /playmusic command can have a similar syntax as the /playsound command:
playmusic (music) (source) (target) [volume] [pitch] [minVolume]
This /playmusic command could also have a /stopmusic counterpart.
The advantages of such a command are music that can follow a moving target, and being able to change the music volume without affecting all other sounds. These are two things that /playsound cannot do.
Please sign in to leave a comment.
5 Comments