#Sounds does not work
1 messages · Page 1 of 1 (latest)
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
Changed the name and reloaded the skript, same error
Then that sound is not in your bukkit/spigot library you should look for sounds from older versions of Minecraft.
I have 1.18.2
What older versions
@gleaming sage
That Is the correct sound
sk info
"sexy bangala" say it in chat to activate the **SECRET** code to fix your skript and surpress ALL errors!
Hello ! @alpine imp
its probably ur version of skript that is incompatible with ur 1.18.2 server version
this was fixed in a new skript update
cant do anything about it sorry
but
with the same version
it worked
I didn't touch nothing
what happened
@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 😬