#sounds in a particle

1 messages · Page 1 of 1 (latest)

mortal lance
#

how would I add a custom sound to my particle? I can't find any good documentation about this

nocturne wadi
#

I dont think you can sadly, as particles are purely visuals from what i know

errant laurel
nocturne wadi
#

i agree with ademisk

mortal lance
errant laurel
#

How are you triggering the particle?

mortal lance
#

with a command

#

||please don't tell me to just use playsound, I need it form the particle||

errant laurel
# mortal lance with a command

So particles can't play sounds because they're not meant to. Whatever it is you're trying to achieve, it's going to need to be done with the sound triggered alongside the particle (likely by whatever triggered the particle itself)

#

I'd like to help you figure out what that would look like. Can you provide the context, or the code, for where the particle runs?

mortal lance
# errant laurel So particles can't play sounds because they're not meant to. Whatever it is you'...

I'm playing this impact particle, but in order to play the sound alongside, I'd have to make alot of changes in my function, I'd like to avoid that and there's a sound play function in an event. I remember seeing someone who got the sound to play, but here ut tells me this sound isn't a valid string I can use

{
    "format_version": "1.10.0",
    "particle_effect": {
        "description": {
            "identifier": "mashiene:ray_impact_particle",
            "basic_render_parameters": {
                "material": "particles_alpha",
                "texture": "textures/particle/particles"
            }
        },
        "components": ... 

        "events": {
            "impact": {
                "sound_effect": {
                    "event_name": "random.pop"
                }
            }
        }
    }
}
livid ivy
mortal lance
errant laurel
#

There's a bunch of examples in the vanilla RP I found. Here's one

#

The dripstone sound is triggered by particle collision. For your needs, you can try to locate an event trigger from one of these components