lonefelidae16/extra-sounds

[Question] How to add ExtraSounds functionality not supported by third-party mods using resourcepack

Opened this issue · 3 comments

I've noticed that some non vanilla items do not have pick up sounds, I figured maybe you need to create a resourcepack but I'm not quite sure. I apologize if this is the wrong place to ask I'm not sure where else to ask.

I've noticed that some non vanilla items do not have pick up sounds, I figured maybe you need to create a resourcepack but I'm not quite sure. I apologize if this is the wrong place to ask I'm not sure where else to ask.

Yeah it’s okay, don’t mind.

The original ExtraSounds Wiki mentions applying custom sounds for mod developers. Have you tried it?
There are a few things to note, however. If you follow this instructions, you will get a Gradle sync error...

  maven {
      name = "stashymane's repo"
-     url = "https://repo.stashy.dev"
+     url = "https://repo.stashy.dev/releases"
  }

And also we have to add Devan’s maven repo, but I cannot tell you the exact url. ARRP says “please use https://ueaj.dev/maven”, but it returns NXDOMAIN.

So, you can use my maven repo.

build.gradle:

repositories {
    maven {
        name "modrinth"
        url "https://api.modrinth.com/maven"
    }
    maven {
        url "https://artifactory.kow08absty.com/artifactory/fabricmc"
    }
}

dependencies {
    modImplementation "dev.stashy:extra-sounds:${project.extrasounds_version}"
}

gradle.properties:

extrasounds_version=2.3.1+1.20~lonefelidae16-build.1

This should result in a successful Gradle sync. For the rest of the methods, please refer to the methods described in the original Wiki.

There is also a repository that contains actual working code, if you are interested: https://github.com/lonefelidae16/food-expansion

I hope this will be helpful to you.

I'm guessing if a mod does not already have extrasounds support I'm not able to add it myself, I'm actually not currently a mod developer I'm only creating a modpack.

Ah, sorry, I’ve thought you wanted to add item sounds to your mod, since there was no information about the target mod at all so far.

For the resource pack creators, you can follow this guide. This content is also outdated, however...

The resource pack structure will be following:

(root)
├ pack.mcmeta
├ pack.png (optional)
├ assets/
   ├ extrasounds/
      ├ sounds.json

Describe the sound to be rewritten in sounds.json. Please follow the json format written in sounds-schema.json.

ExtraSounds will generate three sound entries; item.{pickup,place,select}.[namespace].[itemId]. In most cases to modify, it’s enough to add an entry named item.pickup.[namespace].[itemId]. The rest is generated automatically.

This is all I can say in general. If there is a request to change the sound of this item in this mod to something like this, I can show practical json code.