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

    • Thanks, I've now installed a slightly newer version and the server is at least starting up now.
    • i have the same issue. Found 1 Create mod class dependency(ies) in createdeco-1.3.3-1.19.2.jar, which are missing from the current create-1.19.2-0.5.1.i.jar Found 11 Create mod class dependency(ies) in createaddition-fabric+1.19.2-20230723a.jar, which are missing from the current create-1.19.2-0.5.1.i.jar Detailed walkthrough of mods which rely on missing Create mod classes: Mod: createaddition-fabric+1.19.2-20230723a.jar Missing classes of create: com/simibubi/create/compat/jei/category/sequencedAssembly/JeiSequencedAssemblySubCategory com/simibubi/create/compat/recipeViewerCommon/SequencedAssemblySubCategoryType com/simibubi/create/compat/rei/CreateREI com/simibubi/create/compat/rei/EmptyBackground com/simibubi/create/compat/rei/ItemIcon com/simibubi/create/compat/rei/category/CreateRecipeCategory com/simibubi/create/compat/rei/category/WidgetUtil com/simibubi/create/compat/rei/category/animations/AnimatedBlazeBurner com/simibubi/create/compat/rei/category/animations/AnimatedKinetics com/simibubi/create/compat/rei/category/sequencedAssembly/ReiSequencedAssemblySubCategory com/simibubi/create/compat/rei/display/CreateDisplay Mod: createdeco-1.3.3-1.19.2.jar Missing classes of create: com/simibubi/create/content/kinetics/fan/SplashingRecipe
    • The crash points to moonlight lib - try other builds or make a test without this mod and the mods requiring it
    • Do you have shaders enabled? There is an issue with the mod simpleclouds - remove this mod or disable shaders, if enabled  
    • Maybe you need to create file in assets/<modid>/items/<itemname>.json with content like this:   { "model": { "type": "minecraft:model", "model": "modname:item/itemname" } }  
  • Topics

  • Who's Online (See full list)

×
×
  • Create New...

Important Information

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