Posted May 9, 20169 yr 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";
May 9, 20169 yr Author 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.
May 9, 20169 yr Author Idk what i did BUT i shrunk the block a bit so its the size of a actual chicken, and it fixed it WHOO
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.