Posted July 30, 20196 yr I made a custom mob but i can't make it have a texture package proxy; import net.minecraft.client.renderer.entity.RenderLiving; import net.minecraft.client.renderer.entity.RenderManager; import net.minecraft.util.ResourceLocation; import net.minecraftforge.fml.relauncher.Side; import net.minecraftforge.fml.relauncher.SideOnly; import javax.annotation.Nullable; import forge.TKOR.mod.TKORMod; import mobs.EntityGrant; @SideOnly(Side.CLIENT) public class RenderGrant extends RenderLiving<EntityGrant> { public static final ResourceLocation asd = new ResourceLocation(TKORMod.MODID + ":textures/entity/horse.png"); public RenderGrant(RenderManager rendermanagerIn) { super(rendermanagerIn, new ModelGrant(), 0.75F); } @Nullable @Override protected ResourceLocation getEntityTexture(EntityGrant entity) { //String texturePath = entity.getUnicornTexturePath(); return asd; //new ResourceLocation(TKORMod.MODID+":"+texturePath); } } thats the render class and you can see that the horse.png file is in assets.tkormod.textures.entity
July 30, 20196 yr Author heres the repo https://github.com/JE5143/TKORMod the render class is in the proxy folder because i got lazy Edited July 30, 20196 yr by OoDone missed some info
July 30, 20196 yr Author this look right>? @Override public void registerEntityRenderer() { RenderingRegistry.registerEntityRenderingHandler(EntityGrant.class, RenderGrant::new); new IRenderFactory<EntityGrant>() { @Override public Render<? super EntityGrant> createRenderFor(RenderManager manager) { return new RenderGrant(manager); } }; }
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.