diff --git a/src/main/java/com/minelittlepony/client/render/entity/ZomponyRenderer.java b/src/main/java/com/minelittlepony/client/render/entity/ZomponyRenderer.java index 52480380..70a5bbda 100644 --- a/src/main/java/com/minelittlepony/client/render/entity/ZomponyRenderer.java +++ b/src/main/java/com/minelittlepony/client/render/entity/ZomponyRenderer.java @@ -14,23 +14,30 @@ public class ZomponyRenderer extends PonyRenderer< public static final Identifier HUSK = new Identifier("minelittlepony", "textures/entity/zombie/husk_pony.png"); public static final Identifier DROWNED = new Identifier("minelittlepony", "textures/entity/zombie/drowned_pony.png"); - public ZomponyRenderer(EntityRendererFactory.Context context, Identifier texture, float scale) { - super(context, ModelType.ZOMBIE, TextureSupplier.of(texture), scale); + public static final Identifier DEMON_CHILD = new Identifier("minelittlepony", "textures/entity/zombie/demon_child.png"); + + public ZomponyRenderer(EntityRendererFactory.Context context, TextureSupplier texture, float scale) { + super(context, ModelType.ZOMBIE, texture, scale); } public static ZomponyRenderer zombie(EntityRendererFactory.Context context) { - return new ZomponyRenderer<>(context, ZOMBIE, 1); + return new ZomponyRenderer<>(context, entity -> { + if (entity.isBaby() && entity.getUuid().getLeastSignificantBits() % 160 == 0) { + return DEMON_CHILD; + } + return ZOMBIE; + }, 1); } public static ZomponyRenderer husk(EntityRendererFactory.Context context) { - return new ZomponyRenderer<>(context, HUSK, 1.0625F); + return new ZomponyRenderer<>(context, TextureSupplier.of(HUSK), 1.0625F); } public static ZomponyRenderer drowned(EntityRendererFactory.Context context) { - return new ZomponyRenderer<>(context, DROWNED, 1); + return new ZomponyRenderer<>(context, TextureSupplier.of(DROWNED), 1); } public static ZomponyRenderer giant(EntityRendererFactory.Context context) { - return new ZomponyRenderer<>(context, ZOMBIE, 3); + return new ZomponyRenderer<>(context, TextureSupplier.of(ZOMBIE), 3); } } diff --git a/src/main/resources/assets/minelittlepony/textures/entity/zombie/demon_child.png b/src/main/resources/assets/minelittlepony/textures/entity/zombie/demon_child.png new file mode 100644 index 00000000..e9b83781 Binary files /dev/null and b/src/main/resources/assets/minelittlepony/textures/entity/zombie/demon_child.png differ