#Texture missing error...
23 messages · Page 1 of 1 (latest)
Current error/code :
Missing resource launcherplayericon:textures/gui/player_icon.png referenced from launcherplayericon:textures/gui/player_icon.png
var icon = ResourceLocation.fromNamespaceAndPath("launcherplayericon", "textures/gui/player_icon.png");
where are you using that resource location? like what method are you passing it to
mixin of EntityRenderer#renderNameTag
so not using anything in GuiGraphics?
I don't know what's that so I guess not
i ask cuz different places require different locations, some expect the .png some don’t, etc
oh okay, but no I don't think I'm using something like that
show the line where you actually use the icon location
var renderType = RenderType.entityCutoutNoCull(icon);
hm i believe what you have should work in this context, just to check do you have fabric api loaded (specifically the resource loader module)?
uhm, how do I check that ?
it would show up in the output log when you first start the game
lemme chec
k
I don't see anything...
I need to add the mod FabricAPI to my minecraft ?
yes if you don’t already you need to depend on it, otherwise none of the resources will be loaded from your mods jar
ohh
you can look at the fabric template to see how to add it to build.gradle if needed
Thanks you, it's working !