tModLoader How to change sound of double jump cloud?

FORZER

Official Terrarian
I'm trying to create a small mod, it's like "Cloud in a Bottle", but with other sound. So, I'm trying to change sound of double jump, but my attempts aren't working.

C#:
using Terraria;
using Terraria.ID;
using Terraria.ModLoader;

namespace slimeinthebottle.Accessories
{
    public class slimeinthebottle : ModItem
    {
        public override void SetStaticDefaults()
        {
            DisplayName.SetDefault("Slime In The Bottle");
            Tooltip.SetDefault("Double jump");
        }

        public override void SetDefaults()
        {
            item.width = 20;
            item.height = 20;
            item.value = 3000;
            item.rare = 1;
            item.accessory = true;
            item.UseSound = SoundID.NPCDeath1; // not working
        }

        public override void UpdateAccessory(Player player, bool hideVisual)
        {
            player.doubleJumpCloud = true;
            item.UseSound = SoundID.NPCDeath1; // not working
        }

        public override void AddRecipes()
        {
            ModRecipe recipe = new ModRecipe(mod);
            recipe.AddIngredient(ItemID.Gel, 30);
            recipe.AddIngredient(ItemID.Bottle, 1);
            recipe.AddTile(TileID.WorkBenches);
            recipe.SetResult(this);
            recipe.AddRecipe();
        }
    }
}
 
Back
Top Bottom