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

I have created a custom mob that functions in minecraft using forge/eclipse, but there is no texture. It's stats are all correct, and its body shape, but it has the purple black no texture overlay. When I run minecraft I get this error: "java.io.FileNotFoundException: sao:textures/entity/boar/boar.png

 

And this is the line of code I used to call the texture:

 

"private static final ResourceLocation EntityTexture = new ResourceLocation("sao:textures/entity/boar/boar.png");"

 

Does anyone know how to fix this? I have searched google and multiple forums for over 22 hours over the past two days regarding this issue and have come up with nothing. The texture and model class were made using Techne.

 

Here's my Render class:

 

 

package achilleus.sao.mobs.render;

 

import achilleus.sao.MainClass;

import achilleus.sao.mobs.FrenzyBoar;

import achilleus.sao.mobs.entity.EntityFrenzyBoar;

import net.minecraft.client.model.ModelBase;

import net.minecraft.client.renderer.entity.RenderLiving;

import net.minecraft.entity.Entity;

import net.minecraft.entity.EntityLiving;

import net.minecraft.util.ResourceLocation;

 

public class RenderFrenzyBoar extends RenderLiving {

private static final ResourceLocation EntityTexture = new ResourceLocation("sao:textures/entity/boar/boar.png");

protected FrenzyBoar model;

public RenderFrenzyBoar(ModelBase par1ModelBase, float par2) {

super(par1ModelBase, par2);

model = ((FrenzyBoar)mainModel);

}

 

 

public void renderFrenzyBoar(EntityFrenzyBoar entity, double par2, double par4, double par6, float par8, float par9) {

super.doRender(entity, par2, par4, par6, par8, par9);

}

 

public void doRenderLiving(EntityLiving par1EntityLiving, double par2, double par4, double par6, float par8, float par9) {

renderFrenzyBoar((EntityFrenzyBoar)par1EntityLiving, par2, par4, par6, par8, par9);

}

 

public void doRender(Entity par1Entity, double par2, double par4, double par6, float par8, float par9) {

renderFrenzyBoar((EntityFrenzyBoar)par1Entity, par2, par4, par6, par8, par9);

}

 

 

@Override

protected ResourceLocation getEntityTexture(Entity entity) {

 

return EntityTexture;

}

 

 

 

 

}

 

 

 

  • Author

No, it exists at /src/main/resources/assets/textures/entity/boar/boar.png. I've also tried

ResourceLocation("sao", "textures/entities/boar/boar.png")

 

ResourceLocation("sao","textures/entity/boar/boar.png")

 

ResourceLocation("/src/main/resources/assets/textures/entity/boar/boar.png.")

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.