Jump to content

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


Recommended Posts

Posted

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"]}

}

 

 

Posted

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

Posted

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.

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.

Announcements



  • Recently Browsing

    • No registered users viewing this page.
  • Posts

    • Maybe a conflict with dark_matter
    • Make a test with another java build like Azul Zulu
    • I played my crazy craft server with friends for about a day and a half, but all of a sudden it crashed, and now it won't work, and these are the config files that are giving me problems in the server, and it keeps crashing. Can't join the server anymore or even load without it crashing. Does anybody know how I can fix this??   config codes: java.lang.NullPointerException: null at net.minecraftforge.eventbus.EventSubclassTransformer.buildEvents(EventSubclassTransformer.java:62) ~[eventbus-4.0.0.jar:?] at net.minecraftforge.eventbus.EventSubclassTransformer.transform(EventSubclassTransformer.java:44) [eventbus-4.0.0.jar:?] at net.minecraftforge.eventbus.EventBusEngine.processClass(EventBusEngine.java:21) [eventbus-4.0.0.jar:?] at net.minecraftforge.eventbus.service.ModLauncherService.processClassWithFlags(ModLauncherService.java:20) [eventbus-4.0.0.jar:4.0.0+65+master.6080a3f] at cpw.mods.modlauncher.LaunchPluginHandler.offerClassNodeToPlugins(LaunchPluginHandler.java:85) [modlauncher-8.1.3.jar:?] at cpw.mods.modlauncher.ClassTransformer.transform(ClassTransformer.java:120) [modlauncher-8.1.3.jar:?] at cpw.mods.modlauncher.TransformingClassLoader$DelegatedClassLoader.findClass(TransformingClassLoader.java:265) [modlauncher-8.1.3.jar:?] at cpw.mods.modlauncher.TransformingClassLoader.loadClass(TransformingClassLoader.java:136) [modlauncher-8.1.3.jar:?] at cpw.mods.modlauncher.TransformingClassLoader.loadClass(TransformingClassLoader.java:98) [modlauncher-8.1.3.jar:?] at java.lang.ClassLoader.loadClass(ClassLoader.java:351) [?:1.8.0_312] at net.minecraftforge.fml.client.gui.screen.ModListScreen.<init>(ModListScreen.java:98) [forge:?] It is also version 1.16.5 and I have tried redownloading the modpack.
    • yea, theres no crash report for this one, that one was te old one  
    • is it the issue? like, isnt it in a conflict with other mods? because the modpack's whole point is the Big Globe mod
  • Topics

×
×
  • Create New...

Important Information

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