@SubscribeEvent
public void whenGameMusicPlays(final PlaySoundEvent event) {
if (event.getName().equals("music.game") && ) {
ResourceLocation loc = new ResourceLocation(CaveMusic.MODID + ":" + "music.overworld.underground");
SimpleSoundInstance MyPSR = new SimpleSoundInstance(
loc, SoundSource.MUSIC, 1.0f, 1.0f, false, 0, SoundInstance.Attenuation.NONE, 0.0D, 0.0D, 0.0D, true);
event.setResultSound(MyPSR);
essentially i tried a few combinations of vec3i, vec3, Player and getY() after the &&. I was essentially throwing spaghetti at the wall because i didn't know what i needed to use in 1.17.1. I want to be able to test if player's position on the Y axis is less than a certain value. I'm really sorry if this is a stupid question.