Fabu ♡
Terrarian
So I've added a custom crown vanity item to my mod, but when it's worn it removes all the hair from the player, which I don't want.
I've used "item.headSlot = 26;" in the script, but now it makes it look like a golden crown when the player wears the custom crown.
How do I change the texture of the golden crown to my custom one? Or how do I make the player wear the custom crown with his hair sticking out on the back?
Here's the code:
Thanks for your help!
I've used "item.headSlot = 26;" in the script, but now it makes it look like a golden crown when the player wears the custom crown.
How do I change the texture of the golden crown to my custom one? Or how do I make the player wear the custom crown with his hair sticking out on the back?
Here's the code:
Code:
using Terraria;
using Terraria.ModLoader;
using Terraria.ID;
namespace FabusMod.Items.Armor
{
[AutoloadEquip(EquipType.Head)]
public class ClysmCrown : ModItem
{
public override void SetStaticDefaults()
{
DisplayName.SetDefault("Clysm Crown");
}
public override void SetDefaults()
{
item.width = 20;
item.height = 12;
item.maxStack = 99;
item.value = Item.sellPrice(0, 2, 0, 0);
item.headSlot = 26;
item.rare = 1;
item.vanity = true;
}
public override bool DrawHead()
{
return true;
}
}
}
Thanks for your help!