<?xml version="1.0"?>
<feed xmlns="http://www.w3.org/2005/Atom" xml:lang="en">
	<id>https://wiki.cobblemon.com/index.php?action=history&amp;feed=atom&amp;title=Sounds</id>
	<title>Sounds - Revision history</title>
	<link rel="self" type="application/atom+xml" href="https://wiki.cobblemon.com/index.php?action=history&amp;feed=atom&amp;title=Sounds"/>
	<link rel="alternate" type="text/html" href="https://wiki.cobblemon.com/index.php?title=Sounds&amp;action=history"/>
	<updated>2026-05-08T03:16:52Z</updated>
	<subtitle>Revision history for this page on the wiki</subtitle>
	<generator>MediaWiki 1.39.10</generator>
	<entry>
		<id>https://wiki.cobblemon.com/index.php?title=Sounds&amp;diff=4029&amp;oldid=prev</id>
		<title>Frank The Farmer: Sounds like there&#039;s a new wiki page</title>
		<link rel="alternate" type="text/html" href="https://wiki.cobblemon.com/index.php?title=Sounds&amp;diff=4029&amp;oldid=prev"/>
		<updated>2024-03-07T12:03:23Z</updated>

		<summary type="html">&lt;p&gt;Sounds like there&amp;#039;s a new wiki page&lt;/p&gt;
&lt;p&gt;&lt;b&gt;New page&lt;/b&gt;&lt;/p&gt;&lt;div&gt;{{TOC|right}}&lt;br /&gt;
== Preface ==&lt;br /&gt;
The &amp;lt;code&amp;gt;sounds&amp;lt;/code&amp;gt; JSON is responsible for assigning sound files to any sound events. This file is not exclusive to Cobblemon. You can learn more about it from the [https://minecraft.wiki/w/Sounds.json Minecraft Wiki]. This purpose of this page is to show you how to use it with Cobblemon.&lt;br /&gt;
&amp;lt;/br&amp;gt; &lt;br /&gt;
== File And Folder Format ==&lt;br /&gt;
The sounds JSON simply adds more sound events and files for Minecraft to play. It does not overwrite other sounds JSONs in other resourcepacks. Replacements for sound event data would need to be specified inside of the file. You can reference Cobblemon&amp;#039;s &amp;lt;code&amp;gt;[https://gitlab.com/cable-mc/cobblemon/-/blob/main/common/src/main/resources/assets/cobblemon/sounds.json?ref_type=heads sounds.json]&amp;lt;/code&amp;gt; to see what sound events and sounds you can manipulate.&lt;br /&gt;
&lt;br /&gt;
There may be times where writing a sounds JSON would be irrelevant. One example would be if you want to replace a sound, but not add any to the sound event. You can simply have your resourcepack formatted to replace the &amp;lt;code&amp;gt;ogg&amp;lt;/code&amp;gt; file like you would with [[Tutorials/Texture_replacement| texture replacements]]. You can find the file address for specific sound files by searching in the &amp;lt;code&amp;gt;.jar&amp;lt;/code&amp;gt; or by referencing the [https://gitlab.com/cable-mc/cobblemon/-/tree/main/common/src/main/resources/assets/cobblemon/sounds?ref_type=heads Gitlab folder for sounds.]&lt;br /&gt;
&lt;br /&gt;
&amp;lt;/br&amp;gt;Below is an example of how you would arrange a &amp;lt;code&amp;gt;sounds.json&amp;lt;/code&amp;gt; and any custom sound files into a resourcepack:&lt;br /&gt;
* Minecraft only supports &amp;lt;code&amp;gt;ogg&amp;lt;/code&amp;gt; sound files.&lt;br /&gt;
* Organization is recommended, but the correct file address is mandatory. &lt;br /&gt;
==== Folder Structure ====&lt;br /&gt;
 &amp;lt;div class=&amp;quot;treeview&amp;quot;&amp;gt;&lt;br /&gt;
*&amp;#039;&amp;#039;(addon name)&amp;#039;&amp;#039;&lt;br /&gt;
** &amp;#039;&amp;#039;&amp;#039;pack.mcmeta&amp;#039;&amp;#039;&amp;#039;&lt;br /&gt;
**assets&lt;br /&gt;
***cobblemon&lt;br /&gt;
****&amp;#039;&amp;#039;&amp;#039;sounds.json&amp;#039;&amp;#039;&amp;#039;&lt;br /&gt;
****sounds&lt;br /&gt;
*****&amp;lt;primary folder&amp;gt;&lt;br /&gt;
******&amp;#039;&amp;#039;&amp;#039;&amp;lt;sound&amp;gt;.ogg&amp;#039;&amp;#039;&amp;#039;&lt;br /&gt;
******&amp;lt;secondary folder&amp;gt; (optional for organization)&lt;br /&gt;
*******&amp;#039;&amp;#039;&amp;#039;&amp;lt;sound&amp;gt;.ogg&amp;#039;&amp;#039;&amp;#039; (optional)&lt;br /&gt;
&amp;lt;/div&amp;gt;&amp;lt;/br&amp;gt;&lt;br /&gt;
&lt;br /&gt;
== Sounds JSON Breakdown ==&lt;br /&gt;
Remember that you can learn more about the &amp;lt;code&amp;gt;sounds.json&amp;lt;/code&amp;gt; and its properties from the [https://minecraft.wiki/w/Sounds.json Minecraft Wiki]. Since you can only have one sounds JSON per resourcepack, you either have to group all your sound data together, or make separate resourcepacks if necessary.&lt;br /&gt;
&lt;br /&gt;
&amp;lt;/br&amp;gt;Below is a breakdown of a &amp;lt;code&amp;gt;sounds.json&amp;lt;/code&amp;gt; performing some relevant functions. Hover over the underlined text to see more information.&lt;br /&gt;
 {&lt;br /&gt;
  &amp;quot;&amp;lt;abbr title=&amp;quot;This is a specified sound event. In this case, this is the sound event for wild Pokémon escaping the pokéball. &amp;quot;&amp;gt;poke_ball.open&amp;lt;/abbr&amp;gt;&amp;quot;: {&lt;br /&gt;
    &amp;quot;&amp;lt;abbr title=&amp;quot;Here you will specify if the following data will replace all previously loaded data for this specific sound event. False by default if this line is not written.&amp;quot;&amp;gt;replace&amp;lt;/abbr&amp;gt;&amp;quot;: &amp;lt;abbr title=&amp;quot;In this case, the following data will replace previous sound event data.&amp;quot;&amp;gt;true&amp;lt;/abbr&amp;gt;,&lt;br /&gt;
    &amp;quot;&amp;lt;abbr title=&amp;quot;Here you can write the subtitle for this sound event&amp;quot;&amp;gt;subtitle&amp;lt;/abbr&amp;gt;&amp;quot;: &amp;quot;&amp;lt;abbr title=&amp;quot;This text will be displayed in the subtitles whenever a Pokémon escapes. How cruel.&amp;quot;&amp;gt;Hahaha&amp;lt;/abbr&amp;gt;&amp;quot;,&lt;br /&gt;
    &amp;quot;&amp;lt;abbr title=&amp;quot;Here you will list the sound files that this sound event can play.&amp;quot;&amp;gt;sounds&amp;lt;/abbr&amp;gt;&amp;quot;: [&lt;br /&gt;
      &amp;quot;&amp;lt;abbr title=&amp;quot;The file address for the &amp;#039;open.ogg&amp;#039; sound file&amp;quot;&amp;gt;cobblemon:pokeball/open&amp;lt;/abbr&amp;gt;&amp;quot;,&lt;br /&gt;
      &amp;quot;&amp;lt;abbr title=&amp;quot;The file address for the &amp;#039;open2.ogg&amp;#039; sound file&amp;quot;&amp;gt;cobblemon:pokeball/open2&amp;lt;/abbr&amp;gt;&amp;quot;,&lt;br /&gt;
      {&lt;br /&gt;
        &amp;quot;&amp;lt;abbr title=&amp;quot;Because we want to apply the volume property to this sound specifically, it is formatted differently from the previous two. This is where we specify what file will use the following volume property.&amp;quot;&amp;gt;name&amp;lt;/abbr&amp;gt;&amp;quot;: &amp;quot;&amp;lt;abbr title=&amp;quot;The file address for the &amp;#039;open3.ogg&amp;#039; sound file.&amp;quot;&amp;gt;cobblemon:pokeball/open3&amp;lt;/abbr&amp;gt;&amp;quot;,&lt;br /&gt;
        &amp;quot;&amp;lt;abbr title=&amp;quot;One of the few sound json properties. Here we are setting the volume value for the previously specified &amp;#039;open3.ogg&amp;#039; sound file. Uses a range of 0.0 to 1.&amp;quot;&amp;gt;volume&amp;lt;/abbr&amp;gt;&amp;quot;: &amp;lt;abbr title=&amp;quot;A value of 0.5 should let the &amp;#039;open3.ogg&amp;#039; file play at half of its original volume.&amp;quot;&amp;gt;0.5&amp;lt;/abbr&amp;gt;&lt;br /&gt;
      }&lt;br /&gt;
    ]&lt;br /&gt;
  },&lt;br /&gt;
  &amp;quot;&amp;lt;abbr title=&amp;quot;This is another specified sound event. In this case, this is the sound that gets played during Charizard&amp;#039;s cry animation. It&amp;#039;s played whenever Charizard is summoned or at the start of a battle.&amp;quot;&amp;gt;pokemon.charizard.cry&amp;lt;/abbr&amp;gt;&amp;quot;: {&lt;br /&gt;
    &amp;quot;&amp;lt;abbr title=&amp;quot;Here you are listing sound files this event can use. Since the mod already has a sound for this event, the listed sounds will be added to Charizard&amp;#039;s cry sounds.&amp;quot;&amp;gt;sounds&amp;lt;/abbr&amp;gt;&amp;quot;: [ &amp;quot;&amp;lt;abbr title=&amp;quot;The file address for the &amp;#039;funny.ogg&amp;#039; sound file.&amp;quot;&amp;gt;cobblemon:pokemon/charizard/funny&amp;lt;/abbr&amp;gt;&amp;quot; ]&lt;br /&gt;
  }&lt;br /&gt;
 }&lt;br /&gt;
If this file were loaded, it would do the following:&lt;br /&gt;
* Replace the data for the &amp;lt;code&amp;gt;poke_ball.open&amp;lt;/code&amp;gt; sound event with the data it has here&lt;br /&gt;
** Add a subtitle whenever this event plays&lt;br /&gt;
*** If subtitles are on, &amp;quot;Hahaha&amp;quot; is what would appear during this sound event.&lt;br /&gt;
** Play one of the three listed sound files whenever a Pokémon escapes the pokéball.&lt;br /&gt;
*** All three have an equal chance to be played since a &amp;lt;code&amp;gt;weight&amp;lt;/code&amp;gt; property was not applied.&lt;br /&gt;
*** Only &amp;lt;code&amp;gt;open3.ogg&amp;lt;/code&amp;gt; would play at half volume.&lt;br /&gt;
* Add a new sound file to play for Charizard&amp;#039;s cry animation&lt;br /&gt;
** It does not replace the original sound because the &amp;lt;code&amp;gt;replace&amp;lt;/code&amp;gt; property is not written for this sound event.&lt;br /&gt;
** There would be a 50% chance of playing this &amp;lt;code&amp;gt;funny&amp;lt;/code&amp;gt; sound whenever sending out a Charizard.&lt;br /&gt;
&amp;lt;/br&amp;gt;&lt;br /&gt;
== Sounds JSON Examples ==&lt;br /&gt;
This section contains a couple examples of a &amp;lt;code&amp;gt;sounds.json&amp;lt;/code&amp;gt; for Cobblemon addons.&lt;br /&gt;
&lt;br /&gt;
&amp;lt;/br&amp;gt;Below is an example of a sounds JSON that would add a sound for a custom Pokémon cry. This sound event would need to be tied to a cry animation through a sound keyframe in this specific animation. The sounds JSON creates the sound event and the animation plays the sound event. This example is not exclusive to cries. The same process would work for any sound in any animation. &lt;br /&gt;
 {&lt;br /&gt;
    &amp;quot;pokemon.tentaquil.cry&amp;quot;: {&lt;br /&gt;
        &amp;quot;sounds&amp;quot;: [&amp;quot;cobblemon:pokemon/tentaquil/tentaquil_cry&amp;quot;]&lt;br /&gt;
    }&lt;br /&gt;
 }&lt;br /&gt;
&lt;br /&gt;
&amp;lt;/br&amp;gt;Below is an example of a sounds JSON that would replace some sound event data. Remember that you would only want to do this if you plan to add more sounds to this sound event. Otherwise, just replace the &amp;lt;code&amp;gt;ogg&amp;lt;/code&amp;gt;. You can reference Cobblemon&amp;#039;s &amp;lt;code&amp;gt;[https://gitlab.com/cable-mc/cobblemon/-/blob/main/common/src/main/resources/assets/cobblemon/sounds.json?ref_type=heads sounds.json]&amp;lt;/code&amp;gt; to see what sound events and sounds you can manipulate.&lt;br /&gt;
 {&lt;br /&gt;
  &amp;quot;poke_ball.open&amp;quot;: {&lt;br /&gt;
    &amp;quot;replace&amp;quot;: true,&lt;br /&gt;
    &amp;quot;sounds&amp;quot;: [&lt;br /&gt;
      &amp;quot;cobblemon:pokeball/open&amp;quot;,&lt;br /&gt;
      &amp;quot;cobblemon:pokeball/open2&amp;quot;,&lt;br /&gt;
      &amp;quot;cobblemon:pokeball/open3&amp;quot;&lt;br /&gt;
    ]&lt;br /&gt;
  }&lt;br /&gt;
 }&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
{{Addon_Creation}}&lt;/div&gt;</summary>
		<author><name>Frank The Farmer</name></author>
	</entry>
</feed>