Jump to content

Recommended Posts

Posted

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

Posted

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?

Posted

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

Posted

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]);
}

}

Posted

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.

Announcements



×
×
  • Create New...

Important Information

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