Note: for now only folder structure
- create a new folder
ItemsAdder/contents/my_sounds/resourcepack/my_sounds/sounds/(or use yours if you already have one)
- put your .ogg file in there. You can also create more folders inside
soundsto organize your sounds. For example "effects", "music" etc.
For example I have a file named song_1.ogg and I put it into a new
musicfolder. So now I have
- open the folder
- create a new file named
sounds.json(or open it if you already created it)
- this file is a
.jsonfile so you MUST write it correctly or it won't work. If you need info about Json files please search online.
To add your sound into the file you just have to do this:
This is the sound name. You will use it in every part of the plugin and also in Minecraft vanilla /playsound command.
This is the list of sound files Minecraft will play when you call the sound name. Minecraft will play one of these sounds randomly (only if you set more than one sound).
Keep in mind that you have to change
my_soundsto your own namespace name if it's different!
For example if you want to have random sounds for the same sound name you just have to create multiple
.oggfiles and put them like this:
It's easy, the next time you want to add a sound you just have to add a comma at the end, like this. (I'm referring to line 6 comma)
If you want to be sure not to make mistakes use this website to check if your Json file is good or has errors: https://jsonformatter.curiousconcept.com/
Last modified 23d ago