Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Both sides previous revision Previous revision
skills:effects:sound [2016/09/17 19:15]
skills:effects:sound [2020/06/30 21:13] (current)
Line 1: Line 1:
 +====== Effect: Sound ======
  
 +Plays a sound from either the vanilla game or a resource pack at the targeted entity or location. A good list of sounds [[http://​minecraft.gamepedia.com/​Sounds.json|can be found here]]. Use the "sound event" column.
 +
 +**Upgrading to 1.9**\\
 +When upgrading to Minecraft 1.9, you must change the name of the sound effects used as they were completely made over by Mojang in that update. The updated list of sounds is available [[http://​www.minecraftforum.net/​forums/​mapping-and-modding/​mapping-and-modding-tutorials/​2559106-1-9-all-playsound-sound-arguments-sounds-json|here]]. Sound-effects may not work in MythicMobs 2.3, but will definitly work in version 2.3.2 and later.
 +
 +===== Attributes =====
 +
 +^Attribute ^Aliases ^Description ^Default Value |
 +| sound | s | The sound to play | NONE |
 +| pitch | p | The pitch of the sound. Can be between 0.01 and 2.0 | 1.0 |
 +| volume | v | The volume of the sound. | 1.0 |
 +| soundcategory | sc | The category at which the sound is played, useful for resourcepacks |
 +The "​volume"​ attribute doesn'​t define the percentage of the loudness of the sound, but rather determines how far (measured in blocks) the sound can be heard at maximum volume.
 +
 +The formula for this is ''​v * 16 = maxvolume distance''​. For example if you use "​1"​ for the volume attribute, the sound can be heard at maximum volume in a radius of 16 blocks around the source. If you used "​20"​ however, the sound can be heard at maximum volume in a 320 block radius! //(20 * 16)//
 +===== Examples =====
 +For pre-1.9 Minecraft versions.
 +  Skills:
 +  - sound{s=mob.enderman.scream} @self
 +For 1.9+:
 +  Skills:
 +  - sound{s=entity.enderman.scream} @self