This site works best with JavaScript enabled. Please enable JavaScript to get the best experience from this site.
Hi !
I'm trying to make a new music disk to play custom songs with a jukebox, but everytime i set my disk in a jukebox, the Eclipse console says :
"[Client thread/WARN]: Unable to play unknown soundEvent: craftislife:records.moula"
Here's my class :
MusicDisc :
package com.mod.craftislife.music; import java.util.ArrayList; import com.mod.craftislife.Reference; import net.minecraft.client.renderer.texture.IIconRegister; import net.minecraft.creativetab.CreativeTabs; import net.minecraft.item.ItemRecord; import net.minecraft.item.ItemStack; import net.minecraft.util.ResourceLocation; public class MusicDisc extends ItemRecord { public static ArrayList<MusicDisc> list=new ArrayList<MusicDisc>(); private String recordname; public MusicDisc(String name) { super(name); list.add(this); setUnlocalizedName("record"); setTextureName("record_"+name); setCreativeTab(CreativeTabs.tabMisc); recordname=name; } @Override public ResourceLocation getRecordResource(String name) { ResourceLocation r=super.getRecordResource(Reference.MOD_ID +":"+ recordname); return r; } @Override public void registerIcons(IIconRegister reg) { itemIcon=reg.registerIcon("record_" + recordname); } @Override public String getUnlocalizedName() { return "record."+recordname; } @Override public String getUnlocalizedName(ItemStack arg0) { return getUnlocalizedName(); } }
Here's the sounds.json :
{{"craftislife:moula": { "category": "record", "sounds": [{ "name": "craftislife:music/moula","stream": true} ]}}
Hope i can fix that.
You may get better help over at the minecraft forge forums. But as your working on 1.7.10 expect some salty reactions (ie why you using old version etc)
Last time i posted a message a mod blocked my thread.. so ^^'
Hi !
I'm trying to make a new music disk to play custom songs with a jukebox, but everytime i set my disk in a jukebox, the Eclipse console says :
"[Client thread/WARN]: Unable to play unknown soundEvent: craftislife:records.moula"
Here's my class :
MusicDisc :
Here's the sounds.json :
{{"craftislife:moula": { "category": "record", "sounds": [{ "name": "craftislife:music/moula","stream": true} ]}}
Hope i can fix that.
You may get better help over at the minecraft forge forums. But as your working on 1.7.10 expect some salty reactions (ie why you using old version etc)
Last time i posted a message a mod blocked my thread.. so ^^'