Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- using Microsoft.Xna.Framework;
- using Microsoft.Xna.Framework.Graphics;
- using System;
- using System.Collections.Generic;
- using System.Linq;
- using System.Text;
- using System.Threading.Tasks;
- using Terraria;
- using Terraria.ID;
- using Terraria.ModLoader;
- using Terraria.Localization;
- namespace retrocity
- {
- public class retrocity : Mod
- {
- public override void UpdateMusic(ref int music)
- {
- if (Main.myPlayer != -1 && !Main.gameMenu)
- {
- if (Main.player[Main.myPlayer].active && Main.player[Main.myPlayer].GetModPlayer<MyPlayer>(this).ZoneCustomBiome) //this makes the music play only in Custom Biome
- {
- music = this.GetSoundSlot(SoundType.Music, "Sounds/Music/Crystal"); //add where is the custom music is located
- }
- }
- }
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement