Posted August 25, 20187 yr Hi, so I'm a beginner so I'm probably doing something wwrong, but can someone please explain me why is my entity not resizing (except the shadow)? Thanks! Spoiler package com.almeidowski.littleboii.entity.render; import org.lwjgl.opengl.GL11; import com.almeidowski.littleboii.Main; import com.almeidowski.littleboii.entity.EntityBulletAnt; import com.almeidowski.littleboii.entity.model.ModelBulletAnt; import net.minecraft.client.renderer.entity.RenderLiving; import net.minecraft.client.renderer.entity.RenderManager; import net.minecraft.util.ResourceLocation; public class RenderBulletAnt extends RenderLiving<EntityBulletAnt> { public static final ResourceLocation TEXTURES = new ResourceLocation(Main.MOD_ID + ":textures/entity/bulletant.png)"); public RenderBulletAnt(RenderManager manager) { super(manager, new ModelBulletAnt(), 0.1F); } @Override protected ResourceLocation getEntityTexture(EntityBulletAnt entity) { return TEXTURES; } @Override protected void applyRotations(EntityBulletAnt entityLiving, float p_77043_2_, float rotationYaw, float partialTicks) { super.applyRotations(entityLiving, p_77043_2_, rotationYaw, partialTicks); } public void render(EntityBulletAnt parEntity, float par2, float par3, float par4, float par5, float par6, float par7) { setRotationAngles(parEntity, par2, par3, par4, par5, par6, par7, parEntity); GL11.glPushMatrix(); GL11.glTranslatef(4F, 4.5F-4.5F*parEntity.getScaleFactor(), 4F); GL11.glScalef(parEntity.getScaleFactor(), parEntity.getScaleFactor(), parEntity.getScaleFactor()); ModelBulletAnt.render(par7); GL11.glPopMatrix(); } private void setRotationAngles(EntityBulletAnt parEntity, float par2, float par3, float par4, float par5, float par6, float par7, EntityBulletAnt parEntity2) { } }
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.