Blockland Forums > Modification Help
Command to make player play music, which does not use GUI
<< < (2/2)
Brixmon:

--- Quote from: phflack on October 21, 2017, 09:47:06 AM ---will look into it
(and oh hey, this is the one I put together in the first place lol)

edit: what should the command be?  or should it just overwrite the existing command
or should it be "/boombox <music>" to set music, "/boombox" to disable music, "/boombox" opens the GUI if no music is playing?

--- End quote ---

"/boombox <music>" to set music, and "/boombox" to either disable or open the gui, and "/boombox none" to disable. Since the mod I'm using just lets you bind any chat command, the second part doesn't matter too much to me- typing time isn't an issue. But it'd probably be more convenient for general release if you used "/boombox" to open gui and "/boombox none" to disable.
Sorry if that was a late reply btw!
phflack:
added a bit to it
if you have after school special, but are trying to play after the duck, you'll need to use a script/console: commandToServer('boombox', "after the duck");
otherwise it works by matching the music datablock ID (in case you have access to it), full song name (chat command will only enter the first word), or if that fails, looks for a first word match
/boombox was left alone, just added /boombox <song>, none/0 stops music

https://leopard.hosting/dl/cffbn/Item_BoomBox.zip
Brixmon:

--- Quote from: phflack on October 21, 2017, 01:50:13 PM ---added a bit to it
if you have after school special, but are trying to play after the duck, you'll need to use a script/console: commandToServer('boombox', "after the duck");
otherwise it works by matching the music datablock ID (in case you have access to it), full song name (chat command will only enter the first word), or if that fails, looks for a first word match
/boombox was left alone, just added /boombox <song>, none/0 stops music

https://leopard.hosting/dl/cffbn/Item_BoomBox.zip

--- End quote ---
Thank you kindly!
Navigation
Message Index
Previous page

Go to full version