Jump to content
View in the app

A better way to browse. Learn more.

Forge Forums

A full-screen app on your home screen with push notifications, badges and more.

To install this app on iOS and iPadOS
  1. Tap the Share icon in Safari
  2. Scroll the menu and tap Add to Home Screen.
  3. Tap Add in the top-right corner.
To install this app on Android
  1. Tap the 3-dot menu (⋮) in the top-right corner of the browser.
  2. Tap Add to Home screen or Install app.
  3. Confirm by tapping Install.

Featured Replies

Posted

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

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.

Guest
Unfortunately, your content contains terms that we do not allow. Please edit your content to remove the highlighted words below.
Reply to this topic...

Important Information

By using this site, you agree to our Terms of Use.

Configure browser push notifications

Chrome (Android)
  1. Tap the lock icon next to the address bar.
  2. Tap Permissions → Notifications.
  3. Adjust your preference.
Chrome (Desktop)
  1. Click the padlock icon in the address bar.
  2. Select Site settings.
  3. Find Notifications and adjust your preference.