#Shoulder entity

1 messages · Page 1 of 1 (latest)

bitter bloom
#

I'ld look at ShoulderParrotFeatureRenderer and try to make something similar. Afaik there's no events for adding FeatureRenderer to existing models, so you would need to mixin into player's model constructor to add that

golden current
#

Hoo that rabbit hole go super deep haha

#

But thx for the hint i will continue to dig!

bitter bloom
golden current
#

I've progressed a bit but im stuck on the rendering of the Axolotl, in order to create the vertexConsumer i need the texture of it

#

And I can't figure out how to do it T_T

#

Since AxolotlEntityRenderer doesn't have a static getTexture(AxolotlEntity) i need to make an invoker for it like

package net.hezaerd.axolotlpets.mixins;

import net.minecraft.client.render.entity.AxolotlEntityRenderer;
import net.minecraft.entity.passive.AxolotlEntity;
import net.minecraft.util.Identifier;
import org.spongepowered.asm.mixin.Mixin;
import org.spongepowered.asm.mixin.gen.Invoker;

@Mixin(AxolotlEntityRenderer.class)
public class AxolotlEntityRendererMixin {
    @Invoker("getTexture")
    public static Identifier invokeGetTexture(AxolotlEntity axolotlEntity) {
        throw new AssertionError();
    }

}