Skip to content

Instantly share code, notes, and snippets.

@konwboj
Last active Jan 5, 2022
Embed
What would you like to do?
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");
@Mubelotix
Copy link

Mubelotix commented Apr 8, 2021

Isn't this supposed to describe a VarInt enum? Does master correspond to 0, music to 1 and so on?

edit: it seems so

@Sceat
Copy link

Sceat commented Oct 18, 2021

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

@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