Jump to content
View in the app

A better way to browse. Learn more.

Forge Forums

A full-screen app on your home screen with push notifications, badges and more.

To install this app on iOS and iPadOS
  1. Tap the Share icon in Safari
  2. Scroll the menu and tap Add to Home Screen.
  3. Tap Add in the top-right corner.
To install this app on Android
  1. Tap the 3-dot menu (⋮) in the top-right corner of the browser.
  2. Tap Add to Home screen or Install app.
  3. Confirm by tapping Install.

hpisti

Members
  • Joined

  • Last visited

  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

Important Information

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

Configure browser push notifications

Chrome (Android)
  1. Tap the lock icon next to the address bar.
  2. Tap Permissions → Notifications.
  3. Adjust your preference.
Chrome (Desktop)
  1. Click the padlock icon in the address bar.
  2. Select Site settings.
  3. Find Notifications and adjust your preference.