Posted March 3, 20232 yr Hello everyone, I'm trying to create my own custom shield in 1.19.3 but I have a problem with the texture of the shield. My custom texture isn't working with my shield item, while the vanilla texture works just fine. Even when I create the Material in my Renderer the same way as done in vanilla. My texture is in the textures/entity folder of my mod. So I tried this: public static final Material OBSIDIAN_SHIELD_BASE = new Material(Sheets.SHIELD_SHEET, new ResourceLocation(OresAndToolsMod.MOD_ID, "textures/entity/obsidian_shield_base.png")); And I also tried: public static final Material OBSIDIAN_SHIELD_BASE = new Material(Sheets.SHIELD_SHEET, new ResourceLocation(OresAndToolsMod.MOD_ID, "entity/obsidian_shield_base")); But both ways doesn't seem to work. The shield is just black and pink in the game (the model is correct, only the texture is missing). Of course I double checked, whether the texture is in the right directory, that can't be the problem. Do I need to register the resource location of the item entity or something like that? Or do I have to create my own ModelLayer? I'm currently just using ModelLayers.SHIELD Also it would be nice if I can apply pattern to my own shield. Can I use Sheets.SHIELD_SHEET for that or do I need to use a new ResourceLocation to "texures/atlas/obsidian_shield_patterns.png"? If you want to have a look at the full code of my BEWLRenderer: GitHub - ModBEWLRenderer.java
March 3, 20232 yr You might want to check the logs. There might be something there. I'm not good at modding, but at least I can read a crash report (well enough). That's something, right?
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.