Jump to content

PhilipChonacky

Members
  • Posts

    76
  • Joined

  • Last visited

Everything posted by PhilipChonacky

  1. Wracking my brain and losing sleep so I need a sanity check! I have a custom mob, based on EntityZombie (EntityBeavis) I created the "sounds.json" file at the root of my asset folder (testmod) [example below] put the ogg file in the sounds folder (beavis_cornholio.ogg) sounds folder is in 'assets/testmod' called the custom sound by overriding the "playLivingSound" method referencing modid:event ("testmod:beavisliving") When I run the code, the error I get is "Unable to play unknown soundEvent testmod:beavisliving I know its gotta be something stupid but I'm just not seeing it. EntityBeavis.java package net.chonacky.minecraft.mod.testmod.bb; import net.chonacky.minecraft.mod.testmod.Main; import net.minecraft.entity.monster.EntityZombie; import net.minecraft.world.World; public class EntityBeavis extends EntityZombie { private String livingSound = Main.MODID+":beavisliving" ; //MODID = "testmod" public EntityBeavis(World worldIn) { super(worldIn); this.setCustomNameTag("Let's Burn Something!"); } @Override public void playLivingSound() { this.playSound(livingSound, this.getSoundVolume(), this.getSoundPitch()); } } Here is the sounds.json file: { "beavisliving": { "category": "master", "sounds": [{"name":"beavis_cornholio"} ] } }
×
×
  • Create New...

Important Information

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