SafeSounds

Sep 24, 2016
SafeSounds
  • SafeSounds is currently a work in progress. This wiki is still being set-up.

    Safe-Sounds is an Open Source Resource for Developers to safely use 1.8 sounds for 1.9 and 1.10 by using dedicated ID's instead of regular enumerator names that frequently change depending on the version.

    In Minecraft 1.8 there are 194 usable Spigot Sounds, in Minecraft 1.9 and 1.10 there are 465 usable Spigot Sounds, and all of those 194 1.8 Sounds have changed their names.

    An example of how the normal enum for Sounds doesn't work with other versions of Minecraft and or Spigot:
    Code (Text):
    // 1.8 Version of Level Up Sound
    Sound.LEVEL_UP

    // 1.9 and 1.10 Version of Level Up Sound
    Sound.ENTITY_PLAYER_LEVELUP
    Instead of using names which would normally break, the SafeSounds Resource is built on using ID's for sounds to create aliases of other versions and names of the sound. So instead of having different sound names you can use an ID to play the sound.
    Code (Text):
    // 1.8, 1.9, 1.10 SafeSounds version of Playing LEVEL_UP sound
    SafeSounds.playSound(location, 337, 1f, 1f);
    This Wiki will be frequently Editted.
  • Loading...
  • Loading...