1

Rotation on item not working

szymekcsc 6/24/24 4:15 pm
225
Hi! Recently I was making a clock texture pack.

So I tried to make it flat in hands, however it failed. The whole "display" section didn't work at all.

How it didn't work? Here is a segment my code:

{"parent": "item/generated","textures": {"layer0": "item/clock_1200"},"overrides": [{ "predicate": { "time": 0.0 }, "model": "item/clock_1200" },{ "predicate": { "time": 0.00047 }, "model": "item/clock_1201" },{ "predicate": { "time": 0.00094 }, "model": "item/clock_1202" },{ "predicate": { "time": 0.00139 }, "model": "item/clock_1203" },{ "predicate": { "time": 0.00186 }, "model": "item/clock_1204" },{ "predicate": { "time": 0.00234 }, "model": "item/clock_1205" }, [...] ,{ "predicate": { "time": 0.99816 }, "model": "item/clock_1156" },{ "predicate": { "time": 0.9986 }, "model": "item/clock_1157" },{ "predicate": { "time": 0.99908 }, "model": "item/clock_1158" },{ "predicate": { "time": 0.99955 }, "model": "item/clock_1159" }],"display": {
"thirdperson_righthand": {
"translation": [0, 3, 1],
"scale": [0.55, 0.55, 0.55]
},
"thirdperson_lefthand": {
"translation": [0, 3, 1],
"scale": [0.55, 0.55, 0.55]
},
"firstperson_righthand": {
"rotation": [0, 180, 0],
"translation": [5.5, 7.5, -4.5],
"scale": [0.5, 0.5, 0.5]
},
"firstperson_lefthand": {
"rotation": [0, 180, 0],
"translation": [5.5, 7.5, -4.5],
"scale": [0.68, 0.68, 0.68]
},
"ground": {
"rotation": [0, 180, 0],
"translation": [0, 3, 0],
"scale": [0.5, 0.5, 0.5]
},
"head": {
"rotation": [0, 180, 0],
"translation": [0, 3, 0]
},
"fixed": {
"rotation": [0, 180, 0]
}
}}

Note: the 1st line was too long, so I cut most of it. The cut section is marked as [...].
Posted by
szymekcsc
Level 9 : Apprentice Miner
2

  Have something to say?

JoinSign in

Welcome