#Sounds does not work

1 messages · Page 1 of 1 (latest)

alpine imp
#

Error with sounds, I use this skript by 3 months and now It doesn't works

gleaming sage
#

Remove the minecraft: from the sound name. Only the name is used.

#

It would look like this for you

play sound "block.chest.open" at volume 1 at pitch 2 to player
alpine imp
gleaming sage
#

Then that sound is not in your bukkit/spigot library you should look for sounds from older versions of Minecraft.

alpine imp
#

What older versions

#

@gleaming sage

#

That Is the correct sound

jade fjord
#

sk info

errant spruce
old flax
#

Hello ! @alpine imp

its probably ur version of skript that is incompatible with ur 1.18.2 server version

storm moon
#

this was fixed in a new skript update

alpine imp
#

@storm moon i updated to 2.9.5, the last doesn't work in 1.18.2

#

but, same error

storm moon
#

cant do anything about it sorry

alpine imp
#

but

#

with the same version

#

it worked

#

I didn't touch nothing

#

what happened

#

@storm moon

storm moon
#
public static Sound getAdventureSound(NamespacedKey key, SoundCategory category, float volume, float pitch, OptionalLong seed) {
        return Sound.sound()
            .source(category)
            .volume(volume)
            .pitch(pitch)
            .seed(seed)
            .type(key)
            .build();
    }

the error is caused because of this part

#

Sound.sound() is a builder and the builder class doesn't exist in your version

#

its needed to use this for some fields that dont exist outside the builder

#

and you should drop a 3 year old version 😬