Allays are now breezies

This commit is contained in:
Sollace 2022-06-17 21:10:04 +02:00
parent eff231c85d
commit 07e55b75d3
4 changed files with 12 additions and 62 deletions

View file

@ -2,10 +2,10 @@ package com.minelittlepony.client.model;
import net.minecraft.client.model.Model;
import net.minecraft.client.model.ModelPart;
import net.minecraft.client.render.entity.model.AllayEntityModel;
import net.minecraft.client.render.entity.model.ArmorStandEntityModel;
import net.minecraft.entity.LivingEntity;
import net.minecraft.entity.mob.VexEntity;
import net.minecraft.entity.passive.AllayEntity;
import net.minecraft.util.Identifier;
import com.minelittlepony.api.model.gear.IGear;
@ -71,7 +71,7 @@ public final class ModelType {
public static final ModelKey<EnderStallionModel> ENDERMAN = register("enderman", EnderStallionModel::new);
public static final ModelKey<BreezieModel<VexEntity>> BREEZIE = register("breezie", BreezieModel::new);
public static final ModelKey<ParaspriteModel> PARASPRITE = register("parasprite", ParaspriteModel::new);
public static final ModelKey<AllayEntityModel> ALLAY = register("allay", AllayEntityModel::new);
public static final ModelKey<BreezieModel<AllayEntity>> ALLAY = register("allay", BreezieModel::new);
public static final ModelKey<PonyElytra<?>> ELYTRA = register("elytra", PonyElytra::new);

View file

@ -2,19 +2,20 @@ package com.minelittlepony.client.render.entity;
import net.minecraft.client.render.entity.*;
import net.minecraft.client.render.entity.feature.HeldItemFeatureRenderer;
import net.minecraft.client.render.entity.model.AllayEntityModel;
import net.minecraft.client.util.math.MatrixStack;
import net.minecraft.entity.passive.AllayEntity;
import net.minecraft.util.Identifier;
import net.minecraft.util.math.BlockPos;
import com.minelittlepony.client.model.ModelType;
import com.minelittlepony.client.model.entity.BreezieModel;
public class AllayRenderer extends MobEntityRenderer<AllayEntity, AllayEntityModel> {
public class AllayRenderer extends MobEntityRenderer<AllayEntity, BreezieModel<AllayEntity>> {
private static final Identifier TEXTURE = new Identifier("minelittlepony", "textures/entity/allay/allay_pony.png");
public AllayRenderer(EntityRendererFactory.Context context) {
super(context, ModelType.ALLAY.createModel(), 0.4f);
addFeature(new HeldItemFeatureRenderer<AllayEntity, AllayEntityModel>(this, context.getHeldItemRenderer()));
addFeature(new HeldItemFeatureRenderer<AllayEntity, BreezieModel<AllayEntity>>(this, context.getHeldItemRenderer()));
}
@Override
@ -22,6 +23,11 @@ public class AllayRenderer extends MobEntityRenderer<AllayEntity, AllayEntityMod
return TEXTURE;
}
@Override
protected void scale(AllayEntity entity, MatrixStack stack, float ticks) {
stack.scale(0.4F, 0.4F, 0.4F);
}
@Override
protected int getBlockLight(AllayEntity allayEntity, BlockPos blockPos) {
return 15;

View file

@ -1,59 +1,3 @@
{
"texture": {"w": 32, "h": 32},
"data": {
"root": {
"pivot": [0, 23.5, 0],
"children": {
"head": {
"pivot": [ 0, -3.99, 0 ],
"cubes": [
{ "from": [-2.5, -5, -2.5], "size": [ 5, 5, 5] },
{ "from": [-2.7, -6.6, -0.5], "size": [ 2, 2, 2], "texture": {"u": 10, "v": 10}, "dilate": -0.4 },
{ "from": [ 0.7, -6.6, -0.5], "size": [ 2, 2, 2], "texture": {"u": 10, "v": 14}, "dilate": -0.4 },
{ "from": [-1, -1, -3.3], "size": [ 2, 1, 1], "texture": {"u": 18, "v": 15} }
]
},
"body": {
"texture": { "u": 0, "v": 10 },
"pivot": [ 0, -4, 0 ],
"cubes": [
{ "from": [-1.5, 0, -1], "size": [ 3, 4, 2] },
{ "from": [-1.5, 0, -1], "size": [ 3, 5, 2], "texture": {"u": 0, "v": 16}, "dilate": -0.2 }
],
"children": {
"right_arm": {
"texture": { "u": 23, "v": 0 },
"pivot": [ -1.75, 0.5, 0 ],
"cubes": [
{ "from": [-0.75, -0.5, -1], "size": [ 1, 4, 2], "dilate": -0.01 }
]
},
"left_arm": {
"texture": { "u": 23, "v": 6 },
"pivot": [ 1.75, 0.5, 0 ],
"cubes": [
{ "from": [-0.25, -0.5, -1], "size": [ 1, 4, 2], "dilate": -0.01 }
]
},
"right_wing": {
"texture": { "u": 16, "v": 14 },
"pivot": [ -0.5, 0, 0.65 ],
"cubes": [
{ "from": [0, 1, 0], "size": [ 0, 5, 8] }
]
},
"left_wing": {
"texture": { "u": 16, "v": 14 },
"pivot": [ 0.5, 0, 0.65 ],
"cubes": [
{ "from": [0, 1, 0], "size": [ 0, 5, 8] }
]
}
}
}
}
}
}
"parent": "minelittlepony:breezie"
}

Binary file not shown.

Before

Width:  |  Height:  |  Size: 3.7 KiB

After

Width:  |  Height:  |  Size: 9.9 KiB