Posted September 6, 201411 yr I have a custom .ogg in a folder, and I want it to play when i press a button, how would i do this
September 6, 201411 yr Author There are enough tutorials for sounds out there... It doesnt matter anyway. I made the gui play .wav files instead
September 6, 201411 yr Extend GuiButton and override function public void func_146113_a(SoundHandler p_146113_1_) { p_146113_1_.playSound(PositionedSoundRecord.func_147674_a(new ResourceLocation("gui.button.press"), 1.0F)); }
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.