ploof-pack/faithless/assets/minecraft/optifine/cem/tropical_fish_a.jem

133 lines
3.3 KiB
Plaintext

{
"credit": "Made with Blockbench",
"textureSize": [32, 32],
"models": [
{
"part": "body",
"id": "body",
"invertAxis": "xy",
"translate": [0, -1.5, 0],
"submodels": [
{
"id": "right_fin",
"invertAxis": "xy",
"translate": [1, 0, 0],
"rotate": [0, -45, 0]
},
{
"id": "left_fin",
"invertAxis": "xy",
"translate": [-1, 0, 0],
"rotate": [0, 45, 0]
},
{
"id": "fish",
"invertAxis": "xy",
"translate": [0, 1.5, -1.5],
"submodels": [
{
"id": "tail2",
"invertAxis": "xy",
"translate": [0, 0, 4.5],
"boxes": [
{"coordinates": [0, -1.5, 0, 0, 3, 4], "textureOffset": [24, -4]}
]
},
{
"id": "fin_top2",
"invertAxis": "xy",
"translate": [0, 1.5, -1.5],
"boxes": [
{"coordinates": [0, 0, 0, 0, 4, 6], "textureOffset": [10, -6]}
]
},
{
"id": "body2",
"invertAxis": "xy",
"translate": [0, 0, 1.5],
"boxes": [
{"coordinates": [-1, -1.5, -3, 2, 3, 6], "textureOffset": [0, 0]}
],
"submodels": [
{
"id": "right_fin2",
"invertAxis": "xy",
"translate": [1, -1.5, 0],
"rotate": [0, -45, 0],
"boxes": [
{"coordinates": [0, 0, 0, 2, 2, 0], "textureOffset": [2, 16]}
]
},
{
"id": "left_fin2",
"invertAxis": "xy",
"translate": [-1, -1.5, 0],
"rotate": [0, 45, 0],
"boxes": [
{"coordinates": [-2, 0, 0, 2, 2, 0], "textureOffset": [2, 12]}
]
}
]
}
]
}
],
"animations": [
{
"fish.rx": "-body.rx",
"fish.ry": "-body.ry",
"fish.rz": "-body.rz"
},
{
"body2.rx": "body.rx",
"body2.ry": "body.ry",
"body2.rz": "body.rz",
"tail2.rx": "tail.rx",
"tail2.ry": "tail.ry",
"tail2.rz": "tail.rz",
"fin_top2.rx": "fin_top.rx * limb_speed*2",
"fin_top2.ry": "fin_top.ry* limb_speed*2",
"fin_top2.rz": "fin_top.rz* limb_speed*2",
"right_fin2.rx": "right_fin.rx",
"right_fin2.ry": "right_fin.ry",
"right_fin2.rz": "right_fin.rz",
"left_fin2.rx": "left_fin.rx",
"left_fin2.ry": "left_fin.ry",
"left_fin2.rz": "left_fin.rz"
},
{
"var.counter": "if(var.counter > 0.1, 0 ,var.counter + 1 * frame_time)",
"var.old_pos_y": "if(var.counter > 0.09,pos_y,var.old_pos_y)",
"var.test": "print(1,5,var.old_pos_y-pos_y)",
"var.turn_speed": "0.03 * 1 + abs(pos_y - var.old_pos_y)/5",
"var.pitch": "clamp(if(pos_y - var.old_pos_y == 0, if(equals(var.pitch,0,0.05), 0 ,if(var.pitch < 0,var.pitch + var.turn_speed,var.pitch - var.turn_speed )),if(pos_y < var.old_pos_y,var.pitch + var.turn_speed,var.pitch - var.turn_speed ) ),-torad(80),torad(80))",
"fish.rx": "var.pitch"
}
]
},
{
"part": "fin_top",
"id": "fin_top",
"invertAxis": "xy",
"translate": [0, -3, 3]
},
{
"part": "tail",
"id": "tail",
"invertAxis": "xy",
"translate": [0, -1.5, -3]
},
{
"part": "fin_left",
"id": "fin_left",
"invertAxis": "xy",
"translate": [0, 0, 0]
},
{
"part": "fin_right",
"id": "fin_right",
"invertAxis": "xy",
"translate": [0, 0, 0]
}
]
}