Jump to content

Recommended Posts

Posted

Am i doing something wrong here?

my code is

 

package com.Jigokusaru.chicken;

import org.lwjgl.opengl.GL11;
import org.lwjgl.opengl.GL12;

import com.Jigokusaru.Lib.Ref;

import net.minecraft.client.renderer.tileentity.TileEntitySpecialRenderer;
import net.minecraft.tileentity.TileEntity;
import net.minecraft.util.ResourceLocation;
import net.minecraftforge.client.model.AdvancedModelLoader;
import net.minecraftforge.client.model.IModelCustom;

public class TESRgChicken extends TileEntitySpecialRenderer{
IModelCustom model = AdvancedModelLoader.loadModel(new ResourceLocation(Ref.MODID, "objs/chicken.obj"));
    ResourceLocation texture = new ResourceLocation(Ref.MODID + "textures/goldchicken.png");
    @Override
    public void renderTileEntityAt(TileEntity entity, double x, double y, double z, float p_147500_8_) {

        bindTexture(texture);

        GL11.glPushMatrix();
        GL11.glEnable(GL12.GL_RESCALE_NORMAL);
        GL11.glColor4f(1.0F, 1.0F, 1.0F, 1.0F);
        GL11.glTranslatef((float) x + 0.5F, (float) y + 0.0F, (float) z + 0.5F);
        GL11.glScalef(0.09375F, 0.09375F, 0.09375F);

        model.renderAll();
        GL11.glPopMatrix();

    }
}

 

But my Chicken think is just Pink/Black checkered.

my path is assets.goldchicken.textures

and my ModID is

public static final String MODID = "goldchicken";

Posted

Why are you still using 1.7.10? Update.

Me and a friend are using ATLauncher and most mods he is using can only work  on 1.7.10, so i need to make mods for the server hes using.

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...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

Announcements



×
×
  • Create New...

Important Information

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