Jump to content

Mob labels 1.7.2


The_SlayerMC

Recommended Posts

Back in the day of 1.6.4, I used to use this code inside the render file

 

protected void renderLabel(EntityLiving entityLiving, double par2, double par4, double par6) {
	int distanceToEntity = 20;
	this.renderLabel(entityLiving, EnumChatFormatting.DARK_RED + "Corrupted Creeper Steve", par2, par4, par6, distanceToEntity);
	par4 += (double)((float)this.getFontRendererFromRenderManager().FONT_HEIGHT * 1.15F * par6);
}

 

And now I'm wondering what is the replacement? I know of the ENTITY.setCustomTagName("NAME"); But I find that only works when you hold your cursor over the mob! So again.. What has it been changed too?

Former developer for DivineRPG, Pixelmon and now the maker of Essence of the Gods

Link to comment
Share on other sites

  • 2 months later...

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.