Drug Background Music - Sollace/Psychedelicraft GitHub Wiki

Whilst not normally enabled, Psychedelicraft has support for adding a custom background music to play whenever a particular drug is in effect. These sounds can be enabled or disabled at any time through the mod's configuration file or its configuration screen, however most drugs don't have sounds included by default.

To add a sound to play, you can take advantage of the game's ability to load custom Resource Packs to add your sound file ike you would to override any other sound in the game.

  1. Turn on the sound toggle for the drug you want to have the sound effect for.
  2. Create a resource pack
  3. Convert your sound file to .ogg format (we recommend Audacity)
  4. Place your sound file in the resource pack at a location (can be any, but for backwards compatibility, we recommend assets/psychedelicraft/sounds/drugs/<drug>.ogg where is replaced with the name of the drug who's sound you want to replace).
  5. Add a sounds.json to override the sound, and specify the sound to play
  "drug.<drug>": {
    "category": "player",
    "sounds": [
      {
        "name": "psychedelicraft:<path to sound file>",
        "stream": true
      }
    ]
  },

For example, this is the entry that you would use to make the game play the sound found at assets/psychedelicraft/sounds/drugs/skibid.ogg when lsd is active:

  "drug.lsd": {
    "category": "player",
    "sounds": [
      {
        "name": "psychedelicraft:drugs/skibidi",
        "stream": true
      }
    ]
  },
⚠️ **GitHub.com Fallback** ⚠️