We've split up the commands, scripting and mods, and add ons category! Please be sure you get your thread in the right place.

99

/song or /music command to identify music

10 Comments

Please sign in to leave a comment.

Sorted by oldest
  • 1
    Registered User commented
    Comment actions Permalink

    I can follow the reasoning behind the idea, but I don't think it would be aplicable to the game.
    When playing music discs in the game, the song title already gets displayed.
    If you are talking about the background music there would be other problems, mainly inconsitency.
    Clients could have the music muted, what would the command display when no song is playing, what if clients are overwriting the default music with a resource pack, and most importantly, the background music is client side, so running this command at the same time with multiple players would result in different outputs.
    Using it in command-blocks, the server console or a command function would be impossible because all these sources do not belong to a client and therefore don't have the ability to play music.

  • 4
    Registered User commented
    Comment actions Permalink

    Robin Rogge - you have some good points. I am indeed talking about the background music, the music discs would not be necessary because, as you pointed out, the song title is already displayed. In fact, maybe a better idea would be to have a similar system to the one that displays the title of music discs, except it could be toggled by gamerule and off by default.

    If clients have the music muted or no song is playing, the command should do either do nothing or give an error message, maybe something like "No music is playing".

    Resource packs might be a problem, but I think that if someone is trying to use the /song command to identify the background music, they probably aren't using a resource pack anyway. If someone does try to use the command while also using a resource pack, I'm sure there is a solution. Maybe the command could output the name of the song that the resource pack is overriding, maybe it could search the resource pack files for the name of the song that is currently being played (if that's possible - to be honest I'm not quite sure how resource packs work) and display that, or maybe you'd just get an error message, something like "This command does not work with resource packs".

    As for command blocks and the rest, I know it is possible for commands run in command blocks to behave differently from those typed in chat. For example, the /help command, when typed in chat, displays a list of commands. But in a command block, you just get a quirky message. So I think it would be possible to make /song work differently for command blocks, server consoles and functions. I don't know what it would do - maybe it would just be an invalid command. I don't really know about functions and client-server interactions and stuff like that, but I don't think this aspect is really an issue.

    Hopefully all of the above makes sense and I haven't misunderstood or overlooked anything. There's a good chance I misunderstood something, because I don't know much about the technical side of things. I just thought the command would be nice to have.

  • 0
    Registered User commented
    Comment actions Permalink

    The problem would remain that it would not be unsyncable with the server.
    I'm not sure about '/help' but since that can be overwritten by server plugins I'm quite sure there are no 'client commands' in minecraft. Each command is (probably) executed on the server, and the server has no information about what music is playing on each client.
    The way I see it is that this idea can only be implemented in form of a client command, and to do that the entire concept of client commands would probably have to be implemented first.
    A gamerule won't work either because it's also a server-side setting.

    When you think about how much effort it would take to implement the functionality of this command I'm quite sure that looking up the song's name on Google is a lot quicker :D

  • 2
    Registered User commented
    Comment actions Permalink

    I love this idea! If this is implemented, please let us use it without enabling cheats. 

  • 0
    Registered User commented
    Comment actions Permalink

    Noteblocks xD

  • 1
    Registered User commented
    Comment actions Permalink

    Was about to post this but it's here. We totally need this feature.

     

  • 2
    Registered User commented
    Comment actions Permalink

    Would also greatly like to see this feature implemented somehow. But instead of a command couldn't you just make it part of the F3 info? And on the titlescreen just have it show "Song: XXXXX" in one of the corners.

  • 0
    Registered User commented
    Comment actions Permalink

    I love idea!
    My take would be to display it near sounds subtitles (available to toggle on in options), maybe above them.

  • 1
    Registered User commented
    Comment actions Permalink

    Could even put the current song in the F3 debug menu, maybe.

  • 0
    Registered User commented
    Comment actions Permalink

    Or maybe it could be something that you put in the options that shows you a small pop up telling which song is being played at the beginning of it. Could help simplify instead of typing a command.