how to add player skin overlay

Started by itzmodestep3 on

Topic category: Help with modding (Java Edition)

Last seen on 20:01, 13. Mar 2024
Joined Apr 2020
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • MCreator plugins:
  • Comments:
how to add player skin overlay

so im trying to make a vampirism when you become a vampire overlay (red eyes, blood around mouth) without using armor slot? how would i do this

Last seen on 04:35, 17. Jan 2021
Joined Sep 2019
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • MCreator plugins:
  • Comments:
You are looking for Layers…
Wed, 06/17/2020 - 00:58

You are looking for Layers. However, this is not supported yet in MCreator.

Simply,

You need to create a Layer that extends LayerRenderer. If you need help add my discord (in profile).

You need to add the Layer to all entities using,

    public static void addLayers(PlayerRenderer renderer)
    {
        List<LayerRenderer<AbstractClientPlayerEntity, PlayerModel<AbstractClientPlayerEntity>>> layers = ObfuscationReflectionHelper.getPrivateValue(LivingRenderer.class, renderer, "field_177097_h");
        if(layers != null)
        {
            layers.add(new [YOURLAYER]<>(renderer));
        }
    }

And call the above using,

        Map<String, PlayerRenderer> skinMap = Minecraft.getInstance().getRenderManager().getSkinMap();
        [CLASSCONTAININGMETHOD].addLayers(skinMap.get("default"));
        [CLASSCONTAININGMETHOD].addLayers(skinMap.get("slim"));

 

Due to this being a popular request, I may do a user tutorial soon. Time will tell.

Last seen on 06:40, 26. Aug 2020
Joined Jul 2020
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • MCreator plugins:
  • Comments:
a tutorial would be great…
Sun, 08/16/2020 - 22:59

a tutorial would be great since i still dont have a clue about this

 

Last seen on 23:54, 19. Oct 2022
Joined Sep 2020
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • MCreator plugins:
  • Comments:
could you please do a…
Wed, 09/23/2020 - 17:55

could you please do a tutorial?

Last seen on 17:24, 22. Jan 2023
Joined Sep 2021
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • MCreator plugins:
  • Comments:
yes, could you do a tutorial…
Sun, 12/19/2021 - 15:17

yes, could you do a tutorial ? pleassee xd xd

Last seen on 12:53, 15. Sep 2023
Joined Mar 2022
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • MCreator plugins:
  • Comments:
yes please tutorial
Sun, 04/03/2022 - 15:29

yes please tutorial