mirror of
https://github.com/MineLittlePony/MineLittlePony.git
synced 2025-02-13 16:24:23 +01:00
Fixed snouts not rendering and fixed inverted lighting
This commit is contained in:
parent
4998f3d066
commit
b867357cd9
4 changed files with 10 additions and 10 deletions
|
@ -52,6 +52,7 @@ public class ModelEarthPony<T extends LivingEntity> extends AbstractPonyModel<T>
|
||||||
@Override
|
@Override
|
||||||
public void setVisible(boolean visible) {
|
public void setVisible(boolean visible) {
|
||||||
super.setVisible(visible);
|
super.setVisible(visible);
|
||||||
|
snout.setVisible(visible);
|
||||||
tail.setVisible(visible);
|
tail.setVisible(visible);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
@ -23,6 +23,7 @@ import net.minecraft.client.render.VertexConsumerProvider;
|
||||||
import net.minecraft.client.render.entity.EntityRenderDispatcher;
|
import net.minecraft.client.render.entity.EntityRenderDispatcher;
|
||||||
import net.minecraft.client.render.entity.MobEntityRenderer;
|
import net.minecraft.client.render.entity.MobEntityRenderer;
|
||||||
import net.minecraft.client.render.entity.model.EntityModel;
|
import net.minecraft.client.render.entity.model.EntityModel;
|
||||||
|
import net.minecraft.client.render.entity.model.PlayerEntityModel;
|
||||||
import net.minecraft.client.util.math.MatrixStack;
|
import net.minecraft.client.util.math.MatrixStack;
|
||||||
import net.minecraft.entity.mob.MobEntity;
|
import net.minecraft.entity.mob.MobEntity;
|
||||||
import net.minecraft.util.Identifier;
|
import net.minecraft.util.Identifier;
|
||||||
|
@ -81,6 +82,10 @@ public abstract class RenderPonyMob<T extends MobEntity, M extends EntityModel<T
|
||||||
@Override
|
@Override
|
||||||
public void scale(T entity, MatrixStack stack, float ticks) {
|
public void scale(T entity, MatrixStack stack, float ticks) {
|
||||||
renderPony.preRenderCallback(entity, stack, ticks);
|
renderPony.preRenderCallback(entity, stack, ticks);
|
||||||
|
if (this.getModel() instanceof PlayerEntityModel) {
|
||||||
|
((PlayerEntityModel<?>)getModel()).setVisible(true);
|
||||||
|
}
|
||||||
|
|
||||||
// shadowRadius
|
// shadowRadius
|
||||||
field_4673 = renderPony.getShadowScale();
|
field_4673 = renderPony.getShadowScale();
|
||||||
|
|
||||||
|
|
|
@ -2,13 +2,13 @@
|
||||||
"texture": {"w": 64, "h": 64, "u": 16, "v": 8},
|
"texture": {"w": 64, "h": 64, "u": 16, "v": 8},
|
||||||
"locals": {
|
"locals": {
|
||||||
"x": 0,
|
"x": 0,
|
||||||
"y": 0,
|
"y": -1,
|
||||||
"z": 0
|
"z": -2
|
||||||
},
|
},
|
||||||
"stallion": {
|
"stallion": {
|
||||||
"type": "mson:planar",
|
"type": "mson:planar",
|
||||||
"offset": ["#x", "#y", "#z"],
|
"offset": ["#x", "#y", "#z"],
|
||||||
"south": [-2, 1, -5, 4, 3, 10, 13],
|
"north": [-2, 1, -5, 4, 3, 10, 13],
|
||||||
"up": [-2, 1, -5, 4, 1, 10, 13],
|
"up": [-2, 1, -5, 4, 1, 10, 13],
|
||||||
"down": [-2, 4, -5, 4, 1, 18, 7],
|
"down": [-2, 4, -5, 4, 1, 18, 7],
|
||||||
"west": [-2, 1, -5, 3, 1, 10, 13],
|
"west": [-2, 1, -5, 3, 1, 10, 13],
|
||||||
|
@ -17,7 +17,7 @@
|
||||||
"mare": {
|
"mare": {
|
||||||
"type": "mson:planar",
|
"type": "mson:planar",
|
||||||
"offset": ["#x", "#y", "#z"],
|
"offset": ["#x", "#y", "#z"],
|
||||||
"south": [
|
"north": [
|
||||||
[-2, 2, -5, 4, 2, 10, 14],
|
[-2, 2, -5, 4, 2, 10, 14],
|
||||||
[-1, 1, -5, 2, 1, 11, 13]
|
[-1, 1, -5, 2, 1, 11, 13]
|
||||||
],
|
],
|
||||||
|
|
|
@ -1,11 +1,5 @@
|
||||||
{
|
{
|
||||||
"texture": {"w": 64, "h": 64},
|
"texture": {"w": 64, "h": 64},
|
||||||
"locals": {
|
|
||||||
"snout_x": -3,
|
|
||||||
"snout_z": 2,
|
|
||||||
"horn_x": -1,
|
|
||||||
"horn_z": 4
|
|
||||||
},
|
|
||||||
"skull": {
|
"skull": {
|
||||||
"cubes": [
|
"cubes": [
|
||||||
{"from": [-4, -8, -4], "size": [8, 8, 8]}
|
{"from": [-4, -8, -4], "size": [8, 8, 8]}
|
||||||
|
|
Loading…
Reference in a new issue