Jump to content
View in the app

A better way to browse. Learn more.

Forge Forums

A full-screen app on your home screen with push notifications, badges and more.

To install this app on iOS and iPadOS
  1. Tap the Share icon in Safari
  2. Scroll the menu and tap Add to Home Screen.
  3. Tap Add in the top-right corner.
To install this app on Android
  1. Tap the 3-dot menu (⋮) in the top-right corner of the browser.
  2. Tap Add to Home screen or Install app.
  3. Confirm by tapping Install.

Featured Replies

Posted

So, minecraft automatically assumes that your .ogg file is in the records folder, with all the vanilla records. How do i stop this?

  • Author

Update to 1.7, the sound system has been greatly reworked.

But even in 1.6 your statement is not true.

 

If thats not the case, then where should I save my ogg files?

  • Author

Whatever you specify when creating your record Item.

 

Here is my code

public static Item Record1 = new ModRecord1(2301, "minebeats:sounds.potato").setUnlocalizedName("Record1");

 

But it doesnt work

  • Author

Is your sound registered? Is it in the right location?

 

I know my files are in the right place because I display the file names on a gui button, so its probably a problem in my SoundHandler. Here is the code

package MineBeats;

import net.minecraftforge.client.event.sound.SoundLoadEvent;
import net.minecraftforge.event.ForgeSubscribe;

public class SoundHandler
{
@ForgeSubscribe
public void onSound(SoundLoadEvent event)
{
System.out.println("[Event] Dan's Sounds are loaded" );
event.manager.addSound(MineBeats.beatsdirectory + "\\" + MineBeats.music[0]);
}

}

Update to 1.7, the sound system has been greatly reworked.

I do Forge for free, however the servers to run it arn't free, so anything is appreciated.
Consider supporting the team on Patreon

Guest
This topic is now closed to further replies.

Important Information

By using this site, you agree to our Terms of Use.

Configure browser push notifications

Chrome (Android)
  1. Tap the lock icon next to the address bar.
  2. Tap Permissions → Notifications.
  3. Adjust your preference.
Chrome (Desktop)
  1. Click the padlock icon in the address bar.
  2. Select Site settings.
  3. Find Notifications and adjust your preference.