mirror of
https://github.com/MineLittlePony/MineLittlePony.git
synced 2025-04-01 01:05:27 +02:00
Fix lighting on changeling wings and make them visible when not flying
This commit is contained in:
parent
29e37c6ba9
commit
76cfec8224
2 changed files with 8 additions and 4 deletions
|
@ -69,6 +69,8 @@ public class PegasusWings<T extends Model & IPegasus> implements IPart, MsonMode
|
||||||
if (!pegasus.getAttributes().isCrouching && pegasus.isWearing(Wearable.SADDLE_BAGS)) {
|
if (!pegasus.getAttributes().isCrouching && pegasus.isWearing(Wearable.SADDLE_BAGS)) {
|
||||||
flapAngle -= 1F;
|
flapAngle -= 1F;
|
||||||
}
|
}
|
||||||
|
} else {
|
||||||
|
flapAngle = ROTATE_270 - 0.9F + (float)Math.sin(ticks / 10) / 15F;
|
||||||
}
|
}
|
||||||
|
|
||||||
if (!pegasus.isFlying()) {
|
if (!pegasus.isFlying()) {
|
||||||
|
|
|
@ -5,7 +5,7 @@
|
||||||
"name": "left_wing",
|
"name": "left_wing",
|
||||||
"implementation": "com.minelittlepony.client.model.part.PegasusWings$Wing",
|
"implementation": "com.minelittlepony.client.model.part.PegasusWings$Wing",
|
||||||
"data": {
|
"data": {
|
||||||
"folded": { "visible": false },
|
"folded": "#extended",
|
||||||
"extended": {
|
"extended": {
|
||||||
"texture": {"u": 56, "v": 19, "w": 64, "h": 64},
|
"texture": {"u": 56, "v": 19, "w": 64, "h": 64},
|
||||||
"pivot": [2.49, 5.28, 4],
|
"pivot": [2.49, 5.28, 4],
|
||||||
|
@ -31,7 +31,7 @@
|
||||||
"name": "right_wing",
|
"name": "right_wing",
|
||||||
"implementation": "com.minelittlepony.client.model.part.PegasusWings$Wing",
|
"implementation": "com.minelittlepony.client.model.part.PegasusWings$Wing",
|
||||||
"data": {
|
"data": {
|
||||||
"folded": { "visible": false },
|
"folded": "#extended",
|
||||||
"extended": {
|
"extended": {
|
||||||
"texture": {"u": 56, "v": 19, "w": 64, "h": 64},
|
"texture": {"u": 56, "v": 19, "w": 64, "h": 64},
|
||||||
"pivot": [-2.49, 5.28, 4],
|
"pivot": [-2.49, 5.28, 4],
|
||||||
|
@ -40,13 +40,15 @@
|
||||||
"primary": {
|
"primary": {
|
||||||
"type": "mson:planar",
|
"type": "mson:planar",
|
||||||
"texture": {"u": 56, "v": 16},
|
"texture": {"u": 56, "v": 16},
|
||||||
"east": [0.5, 0, -7, 8, 16]
|
"mirror": [true, false, false],
|
||||||
|
"west": [0.5, 0, -7, 8, 16]
|
||||||
},
|
},
|
||||||
"secondary": {
|
"secondary": {
|
||||||
"type": "mson:planar",
|
"type": "mson:planar",
|
||||||
"texture": {"u": 56, "v": 32},
|
"texture": {"u": 56, "v": 32},
|
||||||
|
"mirror": [true, false, false],
|
||||||
"rotate": [-0.5, -0.3, -0.3333],
|
"rotate": [-0.5, -0.3, -0.3333],
|
||||||
"east": [-1, 0, -5, 8, 16]
|
"west": [-1, 0, -5, 8, 16]
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
Loading…
Add table
Reference in a new issue