Skip to content

Instantly share code, notes, and snippets.

@konwboj
Last active January 5, 2022 19:41
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save konwboj/7c0c380d3923443e9d55 to your computer and use it in GitHub Desktop.
Save konwboj/7c0c380d3923443e9d55 to your computer and use it in GitHub Desktop.
The enum net.minecraft.sounds.SoundSource under the official mappings. Entries start at 0.
MASTER("master"),
MUSIC("music"),
RECORDS("record"),
WEATHER("weather"),
BLOCKS("block"),
HOSTILE("hostile"),
NEUTRAL("neutral"),
PLAYERS("player"),
AMBIENT("ambient"),
VOICE("voice");
@konwboj
Copy link
Author

konwboj commented Oct 19, 2021

here we go, a random gist from a random inactive account is the key to understand Mojang

It's clear that it's an enum and it hasn't changed in the past 6 years. I added a description though :)

@Sceat
Copy link

Sceat commented Oct 19, 2021

here we go, a random gist from a random inactive account is the key to understand Mojang

It's clear that it's an enum and it hasn't changed in the past 6 years. I added a description though :)

lmao hi Anon, thanks 😁 would you know where to find mapping between sounds and their category ? sending a named_sound_effect packet sometimes requires the category and will not work if you missmatch

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment