tModLoader Terraria.ModLoader.Exceptions.MissingResourceException: Expected resource not found: Items/Armor/ServerwideGlasses_Head

Serverwide

Terrarian
I've moved and renamed the files multiple times, but I still haven't figured out a solution to this:

Terraria.ModLoader.Exceptions.MissingResourceException: Expected resource not found:

Items/Armor/ServerwideGlasses_Head

Closest guess: (Is there a spelling error or folder placement error?)
Items/Armor/ServerwideGlasses


Here's my code:

using System.Collections.Generic;
using Terraria.ID;
using Terraria.ModLoader;
using Terraria;

namespace ServerwideVanity.Items.Armor
{
[AutoloadEquip(EquipType.Head)]
public class ServerwideGlasses : ModItem
{


public override void SetDefaults()
{
DisplayName.SetDefault("Serverwide Glasses");
item.width = 18;
item.height = 18;
item.rare = ItemRarityID.Red;
item.value = Item.sellPrice(0, 2, 0, 0);
item.vanity = true;
}

public override bool DrawHead()
{
return true;
}
public override void DrawHair(ref bool drawHair, ref bool drawAltHair)
{
drawHair = drawAltHair = true;
}
}
}
 
This is from two years later but i had the same problem.
Try place everything in the namespace bracket, it worked for me.
 
The issue the OP is having is that you need 2 textures for the helmet. You need the item sprite, and the equip sprite which is what's shown on the player. Example:

CopperHelmet.png
CopperHelmet_Head.png
 
Back
Top Bottom