Hello. I'm having problem with custom sounds with minecraft forge 1.8.
sounds.json
{
"SwordAttack1": {"category": "master","sounds": [{"name": "SwordAttack1","stream": false}]}
}
Play Sound
if (p.getCurrentEquippedItem().getItem() == Item.getByNameOrId("diamond_sword")) {
p.getEntityWorld().playSoundAtEntity(p, "rca:SwordAttack1", 1.0F, 1.0F);
}
Where is "SwordAttack1" stored:
(rca = modid)
src\main\resources\assets\rca\sounds
Where is sound.json stored:
(rca = modid)
src\main\resources\assets\rca
Im getting "[Client thread/WARN]: Unable to play unknown soundEvent: rca:SwordAttack1".
SwordAttack1 is ogg file.
I hope someone can help me .