I've been trying to get my custom sounds to work but I can't seem to figure out how to implement them in the sound,json file, so I came here to see if someone could help me get the right sequences of code for it.
(the sounds and the extra sounds {Along with the sound.json} they will be found under this sentence)
I have looked for other possible solutions, I have also tried tutorials and but I am unable to resolve this problem, since I have a difficult time understanding the code and syntax of the json file. So what I am asking for, is someone to write the extra sounds into my sound.json so I can make use of it. For those who are willing to help me with this, much thanks and I'll include you in a credits txt in both my custom pack and the soundpack. Sorry for the disturbances that I may have caused.
Rollback Post to RevisionRollBack
Jingle bells, decay and fails
The adventurers all died of fright.
Dungeons night, was never right
When the lich came in a sleigh.
The sounds.json file is almost 2000 lines long. There's over a thousand different events and sounds listed. We're going to need a little more than "make it so these are added." You haven't given near enough information for anyone to make anything close to what you want. Which events should trigger the custom sounds? Where should they be located? Should they have their own custom events, or just be grouped in with the default?
This really is something you'll have to do yourself. Json code is extremely simple, not difficult to learn at all. And not understanding the syntax isn't an excuse that holds any water, since you have over 1800 lines of it that you could use as a guide. It's better that you learn to do this, and understand it, than to just ask others to do it for you. So, here's what you need to do.
To add a sound to an already existing event (meaning, hitting a wood log, going up a ladder, tnt exploding), you simply locate that event in the file, and add the sound you want to the list, following the same syntax as the others in the list. To add your own events, just format something along the same lines as the other event entries, and fill it with your own sounds. You can add events to the list of sounds for another event, so one event can trigger another.
Here's an example of an event declaration:
"game.player.hurt.fall.big": { // the name of the event
"category": "player", // the category (which slider in the sounds options menu it falls under)
"sounds": [ // a list of sounds that will be triggered by the event
"damage/fallbig1",
"damage/fallbig2"
]
}
And here's one with an event as one of the listed sounds:
"game.player.hurt.fall.big": {
"category": "player",
"sounds": [
"damage/fallbig1",
"damage/fallbig2",
{
// adding an entry like this means that there is a chance that game.player.hurt.fall.big will trigger custom_event, which has its own list of sounds
"type": "event",
"name": "custom_event"
}
I just wanted the sounds listed in the json file (Which allows me to call upon it in a command known as playsound), for no specific event, I did learn some of the syntax of the json, but I haven't been able to make these ones work, for some reason, I've been incapable of doing this. (Which is the reason why I went here and posted this request, because after a few days of trial and error, I found that I needed help for this) That json file that I made, I made though using the default one and adding some extra sounds to the default sounds. What I really needed is the extras sounds made into a separate json, and I'll figure it out from there. (The Dokucraft Fantasy Soundpack is the one that I've gotten to work, and holds my latest json file.), (The extra file holds all of the sounds that I want to put in a separate soundpack called Adventure Sound Effects)
Explanation for the playsound command (For those who don't know)
its a command that allows the user to select a sound file and play it from either the command or a command block, and I've seen people use custom sounds for that, but I haven't been able to get mine to work no matter how I put it.
Again, sorry for the inconvenience that my previous post imposed upon you, and thanks for telling me that I did not explain better (or specify exactly what I wanted, perhaps this will help a little more than my previous post)
EDIT: Could you show me how putting in a custom sound for no specific event work, and how would the end of the .json would look like, if 47 sounds were added to a blank json file
Adding sounds to a custom event would look something like this:
"custom_event_name": {
"sounds": [
"custom/sound1",
"custom/sound2",
"custom/sound3" etc.
]
}
That did help, but I'm afraid that I still somehow manage to mess it up, so here is the sound.json that I made, could you tell me what I did wrong with it? --- Download has been removed ---
Rollback Post to RevisionRollBack
Jingle bells, decay and fails
The adventurers all died of fright.
Dungeons night, was never right
When the lich came in a sleigh.
That did help, but I'm afraid that I still somehow manage to mess it up, so here is the sound.json that I made, could you tell me what I did wrong with it? https://www.dropbox....owul/sounds.zip
You've got one too many sets of curly brackets around your code. Delete the first and last bracket in the file, and it should work.
Thanks for the help that you have given me, so the sound does work now, but it doesn't let me pick an individual sound out of the sound list for /playsound, so it seems that I would need to divide the sound out, so am I on the right track with the number of brackets needed (or do I need to add more?), and how would I add a new sound (Aka, what kind of division would I use?) -I also haven't updated the json file in the download as right now this is a question of how would I do this and that so I can change the json to make a more flexible sound file
Thanks for the help that you have given me, so the sound does work now, but it doesn't let me pick an individual sound out of the sound list for /playsound, so it seems that I would need to divide the sound out, so am I on the right track with the number of brackets needed (or do I need to add more?), and how would I add a new sound (Aka, what kind of division would I use?) -I also haven't updated the json file in the download as right now this is a question of how would I do this and that so I can change the json to make a more flexible sound file
From what I've read on the wiki, selecting a random sound from the list is the only way that it works. The only way to have a command to play a specific sound would be to have a separate event for each sound.
From what I've read on the wiki, selecting a random sound from the list is the only way that it works. The only way to have a command to play a specific sound would be to have a separate event for each sound.
Correct, so how would I format my json for each of those events, how would it look?
Rollback Post to RevisionRollBack
Jingle bells, decay and fails
The adventurers all died of fright.
Dungeons night, was never right
When the lich came in a sleigh.
Thanks for helping me, I'll post here again if I have anymore problems that I am unable to solve myself (Or either as an update to the current status of my progress)
Rollback Post to RevisionRollBack
Jingle bells, decay and fails
The adventurers all died of fright.
Dungeons night, was never right
When the lich came in a sleigh.
Allright here's the update, I'm not sure what I missed though, but now none of the sounds are playing, so I think I messed something up in the json file, but I can't find where the error would be, so here's the new json file --- Download has been removed --- (This is significantly smaller than my main json file which is 2000 lines while this one is 211 lines, so it might still be a long lookthrough)
Edit: My bad, I made a clerical error on my part XD
Rollback Post to RevisionRollBack
Jingle bells, decay and fails
The adventurers all died of fright.
Dungeons night, was never right
When the lich came in a sleigh.
The link leads to a "not found" error. Also in the future avoid posting on threads that haven't had activity for months (last post before you was November 25, 2013); you are better off creating a new thread.
(the sounds and the extra sounds {Along with the sound.json} they will be found under this sentence)
The extra sounds that I want to implement --- Download has been removed ---
I have looked for other possible solutions, I have also tried tutorials and but I am unable to resolve this problem, since I have a difficult time understanding the code and syntax of the json file. So what I am asking for, is someone to write the extra sounds into my sound.json so I can make use of it. For those who are willing to help me with this, much thanks and I'll include you in a credits txt in both my custom pack and the soundpack. Sorry for the disturbances that I may have caused.
Jingle bells, decay and fails
The adventurers all died of fright.
Dungeons night, was never right
When the lich came in a sleigh.
By Sileo_Vulpes
This really is something you'll have to do yourself. Json code is extremely simple, not difficult to learn at all. And not understanding the syntax isn't an excuse that holds any water, since you have over 1800 lines of it that you could use as a guide. It's better that you learn to do this, and understand it, than to just ask others to do it for you. So, here's what you need to do.
To add a sound to an already existing event (meaning, hitting a wood log, going up a ladder, tnt exploding), you simply locate that event in the file, and add the sound you want to the list, following the same syntax as the others in the list. To add your own events, just format something along the same lines as the other event entries, and fill it with your own sounds. You can add events to the list of sounds for another event, so one event can trigger another.
Here's an example of an event declaration:
And here's one with an event as one of the listed sounds:
]
}
Explanation for the playsound command (For those who don't know)
Again, sorry for the inconvenience that my previous post imposed upon you, and thanks for telling me that I did not explain better (or specify exactly what I wanted, perhaps this will help a little more than my previous post)
EDIT: Could you show me how putting in a custom sound for no specific event work, and how would the end of the .json would look like, if 47 sounds were added to a blank json file
Jingle bells, decay and fails
The adventurers all died of fright.
Dungeons night, was never right
When the lich came in a sleigh.
By Sileo_Vulpes
Jingle bells, decay and fails
The adventurers all died of fright.
Dungeons night, was never right
When the lich came in a sleigh.
By Sileo_Vulpes
You've got one too many sets of curly brackets around your code. Delete the first and last bracket in the file, and it should work.
Jingle bells, decay and fails
The adventurers all died of fright.
Dungeons night, was never right
When the lich came in a sleigh.
By Sileo_Vulpes
From what I've read on the wiki, selecting a random sound from the list is the only way that it works. The only way to have a command to play a specific sound would be to have a separate event for each sound.
Jingle bells, decay and fails
The adventurers all died of fright.
Dungeons night, was never right
When the lich came in a sleigh.
By Sileo_Vulpes
It'd be the same, just with each sound or set of sounds in its own event. Like this:
The first event will have just the one sound. The second will have two.
Jingle bells, decay and fails
The adventurers all died of fright.
Dungeons night, was never right
When the lich came in a sleigh.
By Sileo_Vulpes
Allright here's the update, I'm not sure what I missed though, but now none of the sounds are playing, so I think I messed something up in the json file, but I can't find where the error would be, so here's the new json file --- Download has been removed --- (This is significantly smaller than my main json file which is 2000 lines while this one is 211 lines, so it might still be a long lookthrough)Edit: My bad, I made a clerical error on my part XD
Jingle bells, decay and fails
The adventurers all died of fright.
Dungeons night, was never right
When the lich came in a sleigh.
By Sileo_Vulpes
The link leads to a "not found" error. Also in the future avoid posting on threads that haven't had activity for months (last post before you was November 25, 2013); you are better off creating a new thread.