Voila tous ce que j’ai fait , des erreur ? Des oublie ? dite les moi 
Class Principal :
| public static Item ItemCdTutorial; |
| |
| ItemCdTutorial = new ItemCdTutorial("silimod:cd").setUnlocalizedName("cdTutorial").setCreativeTab(CreativeTabs.tabTools); |
| |
| GameRegistry.registerItem(ItemCdTutorial, "ItemCdTutorial"); |
Class Item:
| package com.mod.silicium.items; |
| |
| import com.mod.silicium.Reference; |
| |
| import cpw.mods.fml.relauncher.Side; |
| import cpw.mods.fml.relauncher.SideOnly; |
| import net.minecraft.item.ItemRecord; |
| import net.minecraft.util.ResourceLocation; |
| |
| public class ItemCdTutorial extends ItemRecord |
| { |
| |
| public ItemCdTutorial(String p_i45350_1_) |
| { |
| super(p_i45350_1_); |
| } |
| @SideOnly(Side.CLIENT) |
| |
| public String getRecordTitle() |
| |
| { |
| |
| return "ModTutorial - " + this.recordName; |
| } |
| |
| public ResourceLocation getRecordResource(String name) |
| { |
| return new ResourceLocation(Reference.MOD_ID + ":records/tuto"); |
| |
| } |
| } |
| |
ensuite j’ai créer un documents de texte , je les nommer “sounds.json” et un dossier sounds , Dans le document texte .json il y a
| { |
| "records.tuto": { |
| "category": "record", |
| "sounds": [{ |
| "name": "records/tuto", |
| "stream": true |
| }] |
| } |
| } |
Dans le dossier sounds il y a un autre dossier “records” et dans “records” il y a ma musique “tuto.ogg”
Voila tous ce que j’ai , mais toujours le problème je n’entend pas ma musique
Comment faire please ? Merci !