Fixed parasprites missing a wing

This commit is contained in:
Sollace 2021-06-14 22:59:58 +02:00
parent 09f68b0e3f
commit 4748c7e5af
2 changed files with 25 additions and 26 deletions

View file

@ -18,7 +18,7 @@ public class ParaspriteModel extends EntityModel<StriderEntity> {
public ParaspriteModel(ModelPart tree) {
super(RenderLayer::getEntityTranslucent);
child = false;
body = tree.getChild("body");
body = tree;
saddle = tree.getChild("saddle");
leftWing = tree.getChild("leftWing");
rightWing = tree.getChild("rightWing");
@ -45,6 +45,7 @@ public class ParaspriteModel extends EntityModel<StriderEntity> {
float sin = (float)Math.sin(ticks) / 2;
float cos = (float)Math.cos(ticks) / 3;
leftWing.visible = true;
leftWing.roll = 0.5F + cos;
leftWing.yaw = 0.5F - sin;

View file

@ -6,24 +6,11 @@
"center": [-4, -4, -4],
"cubes": [
{"from": [0, 0, 0], "size": [8, 8, 8] }
],
"children": [
{
"name": "leftWing",
"center": [4, 2, 8],
"texture": {"u": 32, "v": 0},
"cubes": [
{
"type": "mson:plane",
"face": "east",
"position": [0, -16, 0],
"size": [ 16, 16 ]
}
]
},
{
"name": "rightWing",
"center": [4, 2, 8],
"leftWing": {
"name": "leftWing",
"center": [0, -2, 4],
"texture": {"u": 48, "v": 0},
"cubes": [
{
@ -33,6 +20,17 @@
"size": [ 16, 16 ]
}
]
},
"rightWing": {
"name": "rightWing",
"center": [0, -2, 4],
"texture": {"u": 48, "v": 0},
"cubes": [
{
"type": "mson:plane",
"face": "west",
"position": [0, -16, 0],
"size": [ 16, 16 ]
}
]
},