Rajout de musique

Mais, dans
{
"records.cdTest": {

Dans "records.cdTest", il faut que je mette quoi pour qu'il detecte que c'est bien le cdTest qui possède la musique test ?
 
c'est la ligne juste après:
"name": "records/test",
Qui indique que le fichier se trouve dans assets/modid/sounds/records/test.ogg
Ton problème est la virgule à la fin, utilise ça :
Code:
{
    "records.cdTest": {
    "category": "record",
    "sounds": [
      {
        "name": "records/test",
        "stream": true
      }
    ]
  }
 
Cette virgule a du se mettre dans les codes par erreur
EN tout cas, toujours la même chose...

Quand je met le CD dans le Jukebox, toujours la même chose qui revient dans la console de eclipse :

[14:38:45] [Client thread/WARN]: Unable to play unknown soundEvent: modcd:records.cdTest
 
Alors le fichier de mon son .ogg il est :
\Desktop\forge\src\main\resources\assets\modcd\sounds\records

Et les logs complet du jeu :

Code:
[14:56:09] [main/INFO] [LaunchWrapper]: Loading tweak class name cpw.mods.fml.common.launcher.FMLTweaker
[14:56:09] [main/INFO] [LaunchWrapper]: Using primary tweak class name cpw.mods.fml.common.launcher.FMLTweaker
[14:56:09] [main/INFO] [LaunchWrapper]: Calling tweak class cpw.mods.fml.common.launcher.FMLTweaker
[14:56:09] [main/INFO] [FML]: Forge Mod Loader version 7.2.116.1029 for Minecraft 1.7.2 loading
[14:56:09] [main/INFO] [FML]: Java is Java HotSpot(TM) 64-Bit Server VM, version 1.6.0_45, running on Windows 7:amd64:6.1, installed at C:\Program Files\Java\jdk1.6.0_45\jre
[14:56:09] [main/INFO] [FML]: Managed to load a deobfuscated Minecraft name- we are in a deobfuscated environment. Skipping runtime deobfuscation
[14:56:09] [main/INFO] [LaunchWrapper]: Loading tweak class name cpw.mods.fml.common.launcher.FMLInjectionAndSortingTweaker
[14:56:09] [main/INFO] [LaunchWrapper]: Loading tweak class name cpw.mods.fml.common.launcher.FMLDeobfTweaker
[14:56:09] [main/INFO] [LaunchWrapper]: Calling tweak class cpw.mods.fml.common.launcher.FMLInjectionAndSortingTweaker
[14:56:09] [main/INFO] [LaunchWrapper]: Calling tweak class cpw.mods.fml.common.launcher.FMLInjectionAndSortingTweaker
[14:56:09] [main/INFO] [LaunchWrapper]: Calling tweak class cpw.mods.fml.relauncher.CoreModManager$FMLPluginWrapper
[14:56:09] [main/ERROR] [FML]: The binary patch set is missing. Either you are in a development environment, or things are not going to work!
[14:56:10] [main/ERROR] [FML]: The minecraft jar file:/C:/Users/DiOxy'2000/.gradle/caches/minecraft/net/minecraftforge/forge/1.7.2-10.12.0.1029/forgeSrc-1.7.2-10.12.0.1029.jar!/net/minecraft/client/ClientBrandRetriever.class appears to be corrupt! There has been CRITICAL TAMPERING WITH MINECRAFT, it is highly unlikely minecraft will work! STOP NOW, get a clean copy and try again!
[14:56:10] [main/ERROR] [FML]: FML has been ordered to ignore the invalid or missing minecraft certificate. This is very likely to cause a problem!
[14:56:10] [main/ERROR] [FML]: Technical information: ClientBrandRetriever was at jar:file:/C:/Users/DiOxy'2000/.gradle/caches/minecraft/net/minecraftforge/forge/1.7.2-10.12.0.1029/forgeSrc-1.7.2-10.12.0.1029.jar!/net/minecraft/client/ClientBrandRetriever.class, there were 0 certificates for it
[14:56:10] [main/ERROR] [FML]: FML appears to be missing any signature data. This is not a good thing
[14:56:10] [main/INFO] [LaunchWrapper]: Calling tweak class cpw.mods.fml.relauncher.CoreModManager$FMLPluginWrapper
[14:56:10] [main/INFO] [LaunchWrapper]: Calling tweak class cpw.mods.fml.common.launcher.FMLDeobfTweaker
[14:56:11] [main/INFO] [LaunchWrapper]: Launching wrapped minecraft {net.minecraft.client.main.Main}
[14:56:12] [main/INFO]: Setting user: Player123
[14:56:13] [Client thread/INFO]: LWJGL Version: 2.9.0
[14:56:13] [Client thread/INFO] [MinecraftForge]: Attempting early MinecraftForge initialization
[14:56:13] [Client thread/INFO] [FML]: MinecraftForge v10.12.0.1029 Initialized
[14:56:13] [Client thread/INFO] [FML]: Replaced 128 ore recipies
[14:56:13] [Client thread/INFO] [MinecraftForge]: Completed early MinecraftForge initialization
[14:56:14] [Client thread/INFO] [FML]: Searching C:\Users\DiOxy'2000\Desktop\forge\eclipse\mods for mods
[14:56:15] [Client thread/ERROR] [FML]: FML has detected a mod that is using a package name based on 'net.minecraft.src' : net.minecraft.src.FMLRenderAccessLibrary. This is generally a severe programming error.  There should be no mod code in the minecraft namespace. MOVE YOUR MOD! If you're in eclipse, select your source code and 'refactor' it into a new package. Go on. DO IT NOW!
[14:56:17] [Client thread/INFO] [FML]: Forge Mod Loader has identified 4 mods to load
[14:56:17] [Client thread/INFO]: Reloading ResourceManager: Default, FMLFileResourcePack:Forge Mod Loader, FMLFileResourcePack:Minecraft Forge, FMLFileResourcePack:Mod CD
[14:56:17] [Client thread/INFO] [FML]: Configured a dormant chunk cache size of 0
 
Starting up SoundSystem...
Initializing LWJGL OpenAL
    (The LWJGL binding of OpenAL.  For more information, see http://www.lwjgl.org)
OpenAL initialized.
 
[14:56:18] [Sound Library Loader/INFO]: Sound engine started
[14:56:18] [Client thread/INFO]: Created: 512x256 textures/blocks-atlas
[14:56:19] [Client thread/INFO]: Created: 256x256 textures/items-atlas
[14:56:19] [Client thread/INFO] [FML]: Forge Mod Loader has successfully loaded 4 mods
[14:56:20] [MCO Availability Checker #1/ERROR]: Couldn't connect to Realms
[14:56:21] [Server thread/INFO]: Starting integrated minecraft server version 1.7.2
[14:56:21] [Server thread/INFO]: Generating keypair
[14:56:22] [Server thread/INFO] [FML]: Injecting new block and item data into this server instance
[14:56:22] [Server thread/INFO] [FML]: Loading dimension 0 (New World) (net.minecraft.server.integrated.IntegratedServer@5d59d625)
[14:56:22] [Server thread/INFO] [FML]: Loading dimension 1 (New World) (net.minecraft.server.integrated.IntegratedServer@5d59d625)
[14:56:22] [Server thread/INFO] [FML]: Loading dimension -1 (New World) (net.minecraft.server.integrated.IntegratedServer@5d59d625)
[14:56:22] [Server thread/INFO]: Preparing start region for level 0
[14:56:23] [Server thread/INFO]: Preparing spawn area: 64%
[14:56:24] [Netty Client IO #0/INFO] [FML]: Server protocol version 1
[14:56:24] [Netty IO #1/INFO] [FML]: Client protocol version 1
[14:56:24] [Netty IO #1/INFO] [FML]: Client attempting to join with 4 mods : [email protected],[email protected],[email protected],[email protected]
[14:56:24] [Netty IO #1/INFO] [FML]: Attempting connection with missing mods [] at CLIENT
[14:56:24] [Netty Client IO #0/INFO] [FML]: Attempting connection with missing mods [] at SERVER
[14:56:24] [Client thread/INFO] [FML]: [Client thread] Client side modded connection established
[14:56:24] [Server thread/INFO] [FML]: [Server thread] Server side modded connection established
[14:56:24] [Server thread/INFO]: Player123[local:E:a4648788] logged in with entity id 382 at (217.34662508113001, 79.0, 114.80755431222458)
[14:56:24] [Server thread/INFO]: Player123 joined the game
[14:56:24] [Server thread/INFO]: Saving and pausing game...
[14:56:25] [Server thread/INFO]: Saving chunks for level 'New World'/Overworld
[14:56:25] [Server thread/INFO]: Saving chunks for level 'New World'/Nether
[14:56:25] [Server thread/INFO]: Saving chunks for level 'New World'/The End
[14:56:26] [Client thread/WARN]: Unable to play unknown soundEvent: modcd:records.cdTest

Et la dernière ligne c'est quand je prend le CD et que je le met dans le jukebox
 
Et je rajoute que le fichier sounds.json est dans :

\Desktop\forge\src\main\resources\assets\modcd\assets