Name Tag Skins

Started by Matt The Banana on

Topic category: Help with Minecraft modding (Java Edition)

Joined Sep 2018
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • MCreator plugins:
  • Comments:
Name Tag Skins

How do you make it so that when you name a mob specifically, it changes it's texture?

Joined Sep 2018
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • MCreator plugins:
  • Comments:
I want to make a mob that…
Tue, 04/28/2020 - 20:53

I want to make a mob that changes texture when you name it like _jeb and Dinnerbone

Joined Sep 2019
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • MCreator plugins:
  • Comments:
Yes, it is possible. You can…
Thu, 06/18/2020 - 03:33

Yes, it is possible. You can do it in the renderer function;

MobRenderer::getEntityTexture

Do something like;

    @Override
    public ResourceLocation getEntityTexture(CoolEntity entity) {
        entity.getDisplayName();
        if (entity.getDisplayName().getString().equalsIgnoreCase("COOL")) {
            return SUPERTEXTURE;
        }
        return NOTSUPERTEXTURE;
    }

Keep in mind, SUPERTEXTURE and NOTSUPERTEXTURE represent ResourceLocation variables.

 

I am not sure if this is possible without coding.