Jump to content

[1.7.10] Optifine with mod doesn't allow custom music disks to work


MrProg

Recommended Posts

If I'm not mistaken, all that is required for adding sound in 1.7.10 is the sounds.json correct?

 

Here it is anyway:

 

 

{

    "rip": {"category": "master","sounds": ["block/rip1","block/rip2","block/rip3"]},

    "snowGlobe": {"category": "master","sounds": ["misc/snowGlobe"]},

    "star": {"category": "master","sounds": ["misc/star"]},

    "jingleBells": {"category": "master","sounds": [{"name": "records/jingleBells","stream": true}]},

    "deckTheHalls": {"category": "master","sounds": [{"name": "records/deckTheHalls","stream": true}]},

    "golemSay": {"category": "master","sounds": ["mob/miniGolem/golemSay1","mob/miniGolem/golemSay2","mob/miniGolem/golemSay3"]},

    "golemStep": {"category": "master","sounds": ["mob/miniGolem/golemStep1","mob/miniGolem/golemStep2","mob/miniGolem/golemStep3"]},

    "golemHurt": {"category": "master","sounds": ["mob/miniGolem/golemHurt1","mob/miniGolem/golemHurt2","mob/miniGolem/golemHurt3"]},

    "golemDeath": {"category": "master","sounds": [{"name": "mob/miniGolem/golemDeath","stream": false}]},

    "gingerBreadHit": {"category": "master","sounds": ["mob/gingerbreadMan/gingerBreadHit1","mob/gingerbreadMan/gingerBreadHit2","mob/gingerbreadMan/gingerBreadHit3"]},

    "gingerBreadDeath": {"category": "master","sounds": [{"name": "mob/gingerbreadMan/gingerbreadDeath","stream": false}]},

    "penguinSay": {"category": "master","sounds": ["mob/penguin/penguinSay1","mob/penguin/penguinSay2","mob/penguin/penguinSay3"]},

    "penguinHurt": {"category": "master","sounds": [{"name": "mob/penguin/penguinHurt","stream": false}]},

    "penguinDeath": {"category": "master","sounds": [{"name": "mob/penguin/penguinDeath","stream": false}]},

    "bearSay": {"category": "master","sounds": ["mob/polarBear/bearSay1","mob/polarBear/bearSay2","mob/polarBear/bearSay3"]},

    "bearHurt": {"category": "master","sounds": ["mob/polarBear/bearHurt1","mob/polarBear/bearHurt2","mob/polarBear/bearHurt3"]},

    "bearDeath": {"category": "master","sounds": [{"name": "mob/polarBear/bearDeath","stream": false}]},

    "reindeerSay": {"category": "master","sounds": ["mob/reindeer/reindeerSay1","mob/reindeer/reindeerSay2"]},

    "reindeerHurt": {"category": "master","sounds": ["mob/reindeer/reindeerHurt1","mob/reindeer/reindeerHurt2"]},

    "reindeerDeath": {"category": "master","sounds": [{"name": "mob/reindeer/reindeerDeath","stream": false}]},

    "albinoReindeerSay": {"category": "master","sounds": ["mob/albinoReindeer/albinoReindeerSay1","mob/albinoReindeer/albinoReindeerSay2"]},

    "albinoReindeerHurt": {"category": "master","sounds": ["mob/albinoReindeer/albinoReindeerHurt1","mob/albinoReindeer/albinoReindeerHurt2"]},

    "albinoReindeerDeath": {"category": "master","sounds": [{"name": "mob/albinoReindeer/albinoReindeerDeath","stream": false}]},

    "calendar": {"category": "master","sounds": ["block/calendar1","block/calendar2"]},

    "snowGlobeTap": {"category": "master","sounds": ["block/snowGlobeTap"]},

    "santa": {"category": "master","sounds": ["misc/santa"]}

}

 

 

Link to comment
Share on other sites

Oh yeah. Sorry I forgot all about that. Here it is:

 

package wintercraft.items;

import net.minecraft.client.renderer.texture.IIconRegister;
import net.minecraft.item.ItemRecord;
import net.minecraft.util.ResourceLocation;
import wintercraft.Wintercraft;
import cpw.mods.fml.relauncher.Side;
import cpw.mods.fml.relauncher.SideOnly;

public class ItemChristmasMusicDisk extends ItemRecord{

    public ItemChristmasMusicDisk(String recordName) {
	super(recordName);
	this.setCreativeTab(Wintercraft.WintercraftTab);
	this.maxStackSize = 1;
    }
   
    @Override
    public ResourceLocation getRecordResource(String name)
    {
        return new ResourceLocation(recordName);
    }
    
    @SideOnly(Side.CLIENT)
    public void registerIcons(IIconRegister par1IconRegister)
    {
        this.itemIcon = par1IconRegister.registerIcon(Wintercraft.modid + ":" + this.getUnlocalizedName().substring(5));
    
    }
}

Link to comment
Share on other sites

What version of Optifine are you using?  1.7.10 A4 was really buggy for me and caused a lot of mods to stop working.  The newest version which I think came out today has some bug fixes.  Version 1.7.10 B1.  Refer to http://www.minecraftforum.net/forums/mapping-and-modding/minecraft-mods/1272953-optifine-hd-b2-fps-boost-hd-textures-aa-af-and

width=320 height=64http://www.slothygaming.com/img/ota.png[/img]

If your grammar is shit and you blatantly don't know what you're doing, I will not help you.

Link to comment
Share on other sites

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.

Guest
Unfortunately, your content contains terms that we do not allow. Please edit your content to remove the highlighted words below.
Reply to this topic...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.



×
×
  • Create New...

Important Information

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