mirror of
https://github.com/MineLittlePony/MineLittlePony.git
synced 2025-02-13 08:14:23 +01:00
Fixed parasprites missing a wing
This commit is contained in:
parent
09f68b0e3f
commit
4748c7e5af
2 changed files with 25 additions and 26 deletions
|
@ -18,7 +18,7 @@ public class ParaspriteModel extends EntityModel<StriderEntity> {
|
||||||
public ParaspriteModel(ModelPart tree) {
|
public ParaspriteModel(ModelPart tree) {
|
||||||
super(RenderLayer::getEntityTranslucent);
|
super(RenderLayer::getEntityTranslucent);
|
||||||
child = false;
|
child = false;
|
||||||
body = tree.getChild("body");
|
body = tree;
|
||||||
saddle = tree.getChild("saddle");
|
saddle = tree.getChild("saddle");
|
||||||
leftWing = tree.getChild("leftWing");
|
leftWing = tree.getChild("leftWing");
|
||||||
rightWing = tree.getChild("rightWing");
|
rightWing = tree.getChild("rightWing");
|
||||||
|
@ -45,6 +45,7 @@ public class ParaspriteModel extends EntityModel<StriderEntity> {
|
||||||
float sin = (float)Math.sin(ticks) / 2;
|
float sin = (float)Math.sin(ticks) / 2;
|
||||||
float cos = (float)Math.cos(ticks) / 3;
|
float cos = (float)Math.cos(ticks) / 3;
|
||||||
|
|
||||||
|
leftWing.visible = true;
|
||||||
leftWing.roll = 0.5F + cos;
|
leftWing.roll = 0.5F + cos;
|
||||||
leftWing.yaw = 0.5F - sin;
|
leftWing.yaw = 0.5F - sin;
|
||||||
|
|
||||||
|
|
|
@ -6,33 +6,31 @@
|
||||||
"center": [-4, -4, -4],
|
"center": [-4, -4, -4],
|
||||||
"cubes": [
|
"cubes": [
|
||||||
{"from": [0, 0, 0], "size": [8, 8, 8] }
|
{"from": [0, 0, 0], "size": [8, 8, 8] }
|
||||||
],
|
]
|
||||||
"children": [
|
},
|
||||||
|
"leftWing": {
|
||||||
|
"name": "leftWing",
|
||||||
|
"center": [0, -2, 4],
|
||||||
|
"texture": {"u": 48, "v": 0},
|
||||||
|
"cubes": [
|
||||||
{
|
{
|
||||||
"name": "leftWing",
|
"type": "mson:plane",
|
||||||
"center": [4, 2, 8],
|
"face": "west",
|
||||||
"texture": {"u": 32, "v": 0},
|
"position": [0, -16, 0],
|
||||||
"cubes": [
|
"size": [ 16, 16 ]
|
||||||
{
|
}
|
||||||
"type": "mson:plane",
|
]
|
||||||
"face": "east",
|
},
|
||||||
"position": [0, -16, 0],
|
"rightWing": {
|
||||||
"size": [ 16, 16 ]
|
"name": "rightWing",
|
||||||
}
|
"center": [0, -2, 4],
|
||||||
]
|
"texture": {"u": 48, "v": 0},
|
||||||
},
|
"cubes": [
|
||||||
{
|
{
|
||||||
"name": "rightWing",
|
"type": "mson:plane",
|
||||||
"center": [4, 2, 8],
|
"face": "west",
|
||||||
"texture": {"u": 48, "v": 0},
|
"position": [0, -16, 0],
|
||||||
"cubes": [
|
"size": [ 16, 16 ]
|
||||||
{
|
|
||||||
"type": "mson:plane",
|
|
||||||
"face": "west",
|
|
||||||
"position": [0, -16, 0],
|
|
||||||
"size": [ 16, 16 ]
|
|
||||||
}
|
|
||||||
]
|
|
||||||
}
|
}
|
||||||
]
|
]
|
||||||
},
|
},
|
||||||
|
|
Loading…
Reference in a new issue