Jump to content

hpisti

Members
  • Posts

    3
  • Joined

  • Last visited

Converted

  • Gender
    Undisclosed
  • Personal Text
    I am new!

hpisti's Achievements

Tree Puncher

Tree Puncher (2/8)

0

Reputation

  1. You can get the reference of the block as follows: MovingObjectPosition pos = mc.renderViewEntity.rayTrace(200, 1.0F); if(pos != null) { Block block = Minecraft.getMinecraft().thePlayer.worldObj.getBlock(pos.blockX, pos.blockY, pos.blockZ); ... }
  2. Thank you, that works. GL11.glPushAttrib(GL11.GL_ALL_ATTRIB_BITS); GL11.glPushMatrix(); RenderLiving renderLiving = (RenderLiving) RenderManager.instance.getEntityClassRenderObject(entity.getClass()); GL11.glTranslatef(posX, posY, 0); GL11.glRotatef(180, 0, 0, 1); // Rotate from upside-down GL11.glScaled(25, 25, 25); GL11.glScalef(0.5f, 0.5f, 0.5f); // Resize renderLiving.doRender(entity, 1, 1, 1, 0, 0); GL11.glPopMatrix(); GL11.glPopAttrib();
  3. Hi, I'd like to get the icon of the looked elements (blocks, animals, mobs, etc.). I can get it for the blocks: IIcon icon = block.getIcon(0, 0); but how to do this for the living entities? EntityLivingBase hasn't "getIcon" or any similar methods. EntityLivingBase entity = GetEntityLookAt(....); Any help would be appreciated. Thanks, Istvan
×
×
  • Create New...

Important Information

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