Initial commit
No files matched your search
@@ -0,0 +1,70 @@
|
||||
{
|
||||
"title": "Creeper",
|
||||
"tree": [
|
||||
{
|
||||
"name": "CenterPivot",
|
||||
"position": [ 0, 12, 0 ],
|
||||
"offsetFromPivot": [ 0, 0, 0 ],
|
||||
"size": [ 0, 0, 0 ],
|
||||
"rotation": [ 0, 0, 0 ],
|
||||
"texOffset": [ 0, 0 ],
|
||||
"children": [
|
||||
{
|
||||
"name": "Body",
|
||||
"position": [ 0, -6, 0 ],
|
||||
"offsetFromPivot": [ 0, 6, 0 ],
|
||||
"size": [ 8, 12, 4 ],
|
||||
"rotation": [ 0, 0, 0 ],
|
||||
"texOffset": [ 16, 16 ],
|
||||
"children": [
|
||||
{
|
||||
"name": "Head",
|
||||
"position": [ 0, 6, 0 ],
|
||||
"offsetFromPivot": [ 0, 4, 0 ],
|
||||
"size": [ 8, 8, 8 ],
|
||||
"rotation": [ 0, 0, 0 ],
|
||||
"texOffset": [ 0, 0 ],
|
||||
"children": []
|
||||
}
|
||||
]
|
||||
},
|
||||
{
|
||||
"name": "LegFrontRight",
|
||||
"position": [ -2, -6, 2 ],
|
||||
"offsetFromPivot": [ 0, -3, 2 ],
|
||||
"size": [ 4, 6, 4 ],
|
||||
"rotation": [ 0, 0, 0 ],
|
||||
"texOffset": [ 0, 16 ],
|
||||
"children": []
|
||||
},
|
||||
{
|
||||
"name": "LegBackLeft",
|
||||
"position": [ 2, -6, -2 ],
|
||||
"offsetFromPivot": [ 0, -3, -2 ],
|
||||
"size": [ 4, 6, 4 ],
|
||||
"rotation": [ 0, 0, 0 ],
|
||||
"texOffset": [ 0, 16 ],
|
||||
"children": []
|
||||
},
|
||||
{
|
||||
"name": "LegBackRight",
|
||||
"position": [ -2, -6, -2 ],
|
||||
"offsetFromPivot": [ 0, -3, -2 ],
|
||||
"size": [ 4, 6, 4 ],
|
||||
"rotation": [ 0, 0, 0 ],
|
||||
"texOffset": [ 0, 16 ],
|
||||
"children": []
|
||||
},
|
||||
{
|
||||
"name": "LegFrontLeft",
|
||||
"position": [ 2, -6, 2 ],
|
||||
"offsetFromPivot": [ 0, -3, 2 ],
|
||||
"size": [ 4, 6, 4 ],
|
||||
"rotation": [ 0, 0, 0 ],
|
||||
"texOffset": [ 0, 16 ],
|
||||
"children": []
|
||||
}
|
||||
]
|
||||
}
|
||||
]
|
||||
}
|
||||
@@ -0,0 +1,70 @@
|
||||
{
|
||||
"title": "Husk",
|
||||
"tree": [
|
||||
{
|
||||
"name": "CenterPivot",
|
||||
"position": [ 0, 18, 0 ],
|
||||
"offsetFromPivot": [ 0, 0, 0 ],
|
||||
"size": [ 0, 0, 0 ],
|
||||
"rotation": [ 0, 0, 0 ],
|
||||
"texOffset": [ 0, 0 ],
|
||||
"children": [
|
||||
{
|
||||
"name": "Body",
|
||||
"position": [ 0, -6, 0 ],
|
||||
"offsetFromPivot": [ 0, 6, 0 ],
|
||||
"size": [ 8, 12, 4 ],
|
||||
"rotation": [ 0, 0, 0 ],
|
||||
"texOffset": [ 16, 16 ],
|
||||
"children": [
|
||||
{
|
||||
"name": "Head",
|
||||
"position": [ 0, 6, 0 ],
|
||||
"offsetFromPivot": [ 0, 4, 0 ],
|
||||
"size": [ 8, 8, 8 ],
|
||||
"rotation": [ 30, -5, 15 ],
|
||||
"texOffset": [ 0, 0 ],
|
||||
"children": []
|
||||
},
|
||||
{
|
||||
"name": "RightArm",
|
||||
"position": [ -5, 4, 0 ],
|
||||
"offsetFromPivot": [ -1, -4, 0 ],
|
||||
"size": [ 4, 12, 4 ],
|
||||
"rotation": [ -79.99998, 5.729998, -5.719997 ],
|
||||
"texOffset": [ 40, 16 ],
|
||||
"children": []
|
||||
},
|
||||
{
|
||||
"name": "LeftArm",
|
||||
"position": [ 5, 4, 0 ],
|
||||
"offsetFromPivot": [ 1, -4, 0 ],
|
||||
"size": [ 4, 12, 4 ],
|
||||
"rotation": [ -79.99998, -5.729998, 5.719997 ],
|
||||
"texOffset": [ 40, 16 ],
|
||||
"children": []
|
||||
}
|
||||
]
|
||||
},
|
||||
{
|
||||
"name": "RightLeg",
|
||||
"position": [ -1.9, -6, -0.1 ],
|
||||
"offsetFromPivot": [ 0, -6, 0 ],
|
||||
"size": [ 4, 12, 4 ],
|
||||
"rotation": [ 0, 0, 0 ],
|
||||
"texOffset": [ 0, 16 ],
|
||||
"children": []
|
||||
},
|
||||
{
|
||||
"name": "LeftLeg",
|
||||
"position": [ 1.9, -6, -0.1 ],
|
||||
"offsetFromPivot": [ 0, -6, 0 ],
|
||||
"size": [ 4, 12, 4 ],
|
||||
"rotation": [ 0, 0, 0 ],
|
||||
"texOffset": [ 0, 16 ],
|
||||
"children": []
|
||||
}
|
||||
]
|
||||
}
|
||||
]
|
||||
}
|
||||
@@ -0,0 +1,93 @@
|
||||
{
|
||||
"title": "Skeleton",
|
||||
"texturewidth": 64,
|
||||
"textureheight": 32,
|
||||
"tree": [
|
||||
{
|
||||
"name": "CenterPivot",
|
||||
"position": [ 0, 18, 0 ],
|
||||
"offsetFromPivot": [ 0, 0, 0 ],
|
||||
"size": [ 0, 0, 0 ],
|
||||
"rotation": [ 0, 0, 0 ],
|
||||
"texOffset": [ 16, 16 ],
|
||||
"children": [
|
||||
{
|
||||
"name": "Body",
|
||||
"position": [ 0, -6, 0 ],
|
||||
"offsetFromPivot": [ 0, 6, 0 ],
|
||||
"size": [ 8, 12, 4 ],
|
||||
"rotation": [ 0, 0, 0 ],
|
||||
"texOffset": [ 16, 16 ],
|
||||
"children": [
|
||||
{
|
||||
"name": "Head",
|
||||
"position": [ 0, 6, 0 ],
|
||||
"offsetFromPivot": [ 0, 4, 0 ],
|
||||
"size": [ 8, 8, 8 ],
|
||||
"rotation": [ 0, 0, 0 ],
|
||||
"texOffset": [ 0, 0 ],
|
||||
"children": []
|
||||
},
|
||||
{
|
||||
"name": "RightArm",
|
||||
"position": [ -4, 5, 0 ],
|
||||
"offsetFromPivot": [ -1, -5, 0 ],
|
||||
"size": [ 2, 12, 2 ],
|
||||
"rotation": [ 0, 0, 0 ],
|
||||
"texOffset": [ 40, 16 ],
|
||||
"children": [
|
||||
{
|
||||
"name": "HandAnchorRight",
|
||||
"position": [ 0, -4, 0 ],
|
||||
"offsetFromPivot": [ 0, 0, 0 ],
|
||||
"size": [ 0, 0, 0 ],
|
||||
"rotation": [ 0, 0, 0 ],
|
||||
"texOffset": [ 42, 18 ],
|
||||
"children": []
|
||||
}
|
||||
]
|
||||
},
|
||||
{
|
||||
"name": "LeftArm",
|
||||
"position": [ 4, 5, 0 ],
|
||||
"offsetFromPivot": [ 1, -5, 0 ],
|
||||
"size": [ 2, 12, 2 ],
|
||||
"rotation": [ 0, 0, 0 ],
|
||||
"texOffset": [ 40, 16 ],
|
||||
"children": [
|
||||
{
|
||||
"name": "HandAnchorLeft",
|
||||
"position": [ 0, -4, 0 ],
|
||||
"offsetFromPivot": [ 0, 0, 0 ],
|
||||
"size": [ 0, 0, 0 ],
|
||||
"rotation": [ 0, 0, 0 ],
|
||||
"texOffset": [ 42, 18 ],
|
||||
"children": [
|
||||
]
|
||||
}
|
||||
]
|
||||
}
|
||||
]
|
||||
},
|
||||
{
|
||||
"name": "LeftLeg",
|
||||
"position": [ 2, -6, 0 ],
|
||||
"offsetFromPivot": [ 0, -6, 0 ],
|
||||
"size": [ 2, 12, 2 ],
|
||||
"rotation": [ 0, 0, 0 ],
|
||||
"texOffset": [ 0, 16 ],
|
||||
"children": []
|
||||
},
|
||||
{
|
||||
"name": "RightLeg",
|
||||
"position": [ -2, -6, 0 ],
|
||||
"offsetFromPivot": [ 0, -6, 0 ],
|
||||
"size": [ 2, 12, 2 ],
|
||||
"rotation": [ 0, 0, 0 ],
|
||||
"texOffset": [ 0, 16 ],
|
||||
"children": []
|
||||
}
|
||||
]
|
||||
}
|
||||
]
|
||||
}
|
||||
@@ -0,0 +1,117 @@
|
||||
{
|
||||
"title": "Spider",
|
||||
"texturewidth": 64,
|
||||
"textureheight": 32,
|
||||
"tree": [
|
||||
{
|
||||
"name": "CenterPivot",
|
||||
"position": [ 0, 9, 0 ],
|
||||
"offsetFromPivot": [ 0, 0, 0 ],
|
||||
"size": [ 0, 0, 0 ],
|
||||
"rotation": [ 0, 0, 0 ],
|
||||
"texOffset": [ 6, 6 ],
|
||||
"children": [
|
||||
{
|
||||
"name": "leg1",
|
||||
"position": [ -4, 0, 2 ],
|
||||
"offsetFromPivot": [ -7, 0, 0 ],
|
||||
"size": [ 16, 2, 2 ],
|
||||
"rotation": [ -4.769074E-07, 45, 45 ],
|
||||
"texOffset": [ 18, 0 ],
|
||||
"children": []
|
||||
},
|
||||
{
|
||||
"name": "leg2",
|
||||
"position": [ 4, 0, 2 ],
|
||||
"offsetFromPivot": [ 7, 0, 0 ],
|
||||
"size": [ 16, 2, 2 ],
|
||||
"rotation": [ -4.769074E-07, -45, -45 ],
|
||||
"texOffset": [ 18, 0 ],
|
||||
"children": []
|
||||
},
|
||||
{
|
||||
"name": "leg3",
|
||||
"position": [ -4, 0, 1 ],
|
||||
"offsetFromPivot": [ -7, 0, 0 ],
|
||||
"size": [ 16, 2, 2 ],
|
||||
"rotation": [ 2.212737E-06, 22.5, 33.3 ],
|
||||
"texOffset": [ 18, 0 ],
|
||||
"children": []
|
||||
},
|
||||
{
|
||||
"name": "leg4",
|
||||
"position": [ 4, 0, 1 ],
|
||||
"offsetFromPivot": [ 7, 0, 0 ],
|
||||
"size": [ 16, 2, 2 ],
|
||||
"rotation": [ 2.212737E-06, -22.5, -33.3 ],
|
||||
"texOffset": [ 18, 0 ],
|
||||
"children": []
|
||||
},
|
||||
{
|
||||
"name": "leg5",
|
||||
"position": [ 4, 0, -1 ],
|
||||
"offsetFromPivot": [ 7, 0, 0 ],
|
||||
"size": [ 16, 2, 2 ],
|
||||
"rotation": [ -2.613867E-06, 22.5, -33.3 ],
|
||||
"texOffset": [ 18, 0 ],
|
||||
"children": []
|
||||
},
|
||||
{
|
||||
"name": "leg6",
|
||||
"position": [ -4, 0, -1 ],
|
||||
"offsetFromPivot": [ -7, 0, 0 ],
|
||||
"size": [ 16, 2, 2 ],
|
||||
"rotation": [ -2.613867E-06, -22.5, 33.3 ],
|
||||
"texOffset": [ 18, 0 ],
|
||||
"children": []
|
||||
},
|
||||
{
|
||||
"name": "leg7",
|
||||
"position": [ 4, 0, -2 ],
|
||||
"offsetFromPivot": [ 7, 0, 0 ],
|
||||
"size": [ 16, 2, 2 ],
|
||||
"rotation": [ 4.769074E-07, 45, -45 ],
|
||||
"texOffset": [ 18, 0 ],
|
||||
"children": []
|
||||
},
|
||||
{
|
||||
"name": "leg8",
|
||||
"position": [ -4, 0, -2 ],
|
||||
"offsetFromPivot": [ -7, 0, 0 ],
|
||||
"size": [ 16, 2, 2 ],
|
||||
"rotation": [ 4.769074E-07, -45, 45 ],
|
||||
"texOffset": [ 18, 0 ],
|
||||
"children": []
|
||||
},
|
||||
{
|
||||
"name": "Body",
|
||||
"position": [ 0, 0, 0 ],
|
||||
"offsetFromPivot": [ 0, 0, 0 ],
|
||||
"size": [ 6, 6, 6 ],
|
||||
"rotation": [ 0, 0, 0 ],
|
||||
"texOffset": [ 0, 0 ],
|
||||
"children": [
|
||||
{
|
||||
"name": "Head",
|
||||
"position": [ 0, 0, 3 ],
|
||||
"offsetFromPivot": [ 0, 0, 4 ],
|
||||
"size": [ 8, 8, 8 ],
|
||||
"rotation": [ 0, 0, 0 ],
|
||||
"texOffset": [ 32, 4 ],
|
||||
"children": []
|
||||
},
|
||||
{
|
||||
"name": "Sac",
|
||||
"position": [ 0, 0, -3 ],
|
||||
"offsetFromPivot": [ 0, 0, -6 ],
|
||||
"size": [ 10, 8, 12 ],
|
||||
"rotation": [ 0, 0, 0 ],
|
||||
"texOffset": [ 0, 12 ],
|
||||
"children": []
|
||||
}
|
||||
]
|
||||
}
|
||||
]
|
||||
}
|
||||
]
|
||||
}
|
||||
@@ -0,0 +1,192 @@
|
||||
{
|
||||
"title": "Steve",
|
||||
"texturewidth": 64,
|
||||
"textureheight": 64,
|
||||
"tree": [
|
||||
{
|
||||
"name": "CenterPivot",
|
||||
"position": [ 0, 18, 0 ],
|
||||
"offsetFromPivot": [ 0, 0, 0 ],
|
||||
"size": [ 0, 0, 0 ],
|
||||
"rotation": [ 0, 0, 0 ],
|
||||
"texOffset": [ 20, 20 ],
|
||||
"children": [
|
||||
{
|
||||
"name": "Body",
|
||||
"position": [ 0, -6, 0 ],
|
||||
"offsetFromPivot": [ 0, 6, 0 ],
|
||||
"size": [ 8, 12, 4 ],
|
||||
"rotation": [ 0, 0, 0 ],
|
||||
"texOffset": [ 16, 16 ],
|
||||
"children": [
|
||||
{
|
||||
"name": "Head",
|
||||
"position": [ 0, 6, 0 ],
|
||||
"offsetFromPivot": [ 0, 4, 0 ],
|
||||
"size": [ 8, 8, 8 ],
|
||||
"rotation": [ 0, 0, 0 ],
|
||||
"texOffset": [ 0, 0 ],
|
||||
"children": [
|
||||
{
|
||||
"name": "HeadLayer",
|
||||
"position": [ 0, -4, 0 ],
|
||||
"offsetFromPivot": [ 0, 4, 0 ],
|
||||
"size": [ 8, 8, 8 ],
|
||||
"rotation": [ 0, 0, 0 ],
|
||||
"vertexCoords": [
|
||||
[ -4.4, 4.4, -4.4 ],
|
||||
[ 4.4, 4.4, -4.4 ],
|
||||
[ 4.4, -4.4, -4.4 ],
|
||||
[ -4.4, -4.4, -4.4 ],
|
||||
[ 4.4, 4.4, 4.4 ],
|
||||
[ -4.4, 4.4, 4.4 ],
|
||||
[ -4.4, -4.4, 4.4 ],
|
||||
[ 4.4, -4.4, 4.4 ]
|
||||
],
|
||||
"texOffset": [ 32, 0 ],
|
||||
"children": []
|
||||
}
|
||||
]
|
||||
},
|
||||
{
|
||||
"name": "RightArm",
|
||||
"position": [ -5, 4, 0 ],
|
||||
"offsetFromPivot": [ -1, -4, 0 ],
|
||||
"size": [ 4, 12, 4 ],
|
||||
"rotation": [ 0, 0, 0 ],
|
||||
"texOffset": [ 40, 16 ],
|
||||
"children": [
|
||||
{
|
||||
"name": "RightArmLayer",
|
||||
"position": [ 1, 4, 0 ],
|
||||
"offsetFromPivot": [ -1, -4, 0 ],
|
||||
"size": [ 4, 12, 4 ],
|
||||
"rotation": [ 0, 0, 0 ],
|
||||
"vertexCoords": [
|
||||
[ -2.2, 6.6, -2.2 ],
|
||||
[ 2.2, 6.6, -2.2 ],
|
||||
[ 2.2, -6.6, -2.2 ],
|
||||
[ -2.2, -6.6, -2.2 ],
|
||||
[ 2.2, 6.6, 2.2 ],
|
||||
[ -2.2, 6.6, 2.2 ],
|
||||
[ -2.2, -6.6, 2.2 ],
|
||||
[ 2.2, -6.6, 2.2 ]
|
||||
],
|
||||
"texOffset": [ 40, 32 ],
|
||||
"children": []
|
||||
},
|
||||
{
|
||||
"name": "HandAnchorRight",
|
||||
"position": [ 0, -4, 0 ],
|
||||
"offsetFromPivot": [ 0, 0, 0 ],
|
||||
"size": [ 0, 0, 0 ],
|
||||
"rotation": [ 0, 0, 0 ],
|
||||
"texOffset": [ 44, 20 ],
|
||||
"children": [
|
||||
]
|
||||
}
|
||||
]
|
||||
},
|
||||
{
|
||||
"name": "LeftArm",
|
||||
"position": [ 5, 4, 0 ],
|
||||
"offsetFromPivot": [ 1, -4, 0 ],
|
||||
"size": [ 4, 12, 4 ],
|
||||
"rotation": [ 0, 0, 0 ],
|
||||
"texOffset": [ 32, 48 ],
|
||||
"children": [
|
||||
{
|
||||
"name": "LeftArmLayer",
|
||||
"position": [ -1, 4, 0 ],
|
||||
"offsetFromPivot": [ 1, -4, 0 ],
|
||||
"size": [ 4, 12, 4 ],
|
||||
"rotation": [ 0, 0, 0 ],
|
||||
"vertexCoords": [
|
||||
[ -2.2, 6.6, -2.2 ],
|
||||
[ 2.2, 6.6, -2.2 ],
|
||||
[ 2.2, -6.6, -2.2 ],
|
||||
[ -2.2, -6.6, -2.2 ],
|
||||
[ 2.2, 6.6, 2.2 ],
|
||||
[ -2.2, 6.6, 2.2 ],
|
||||
[ -2.2, -6.6, 2.2 ],
|
||||
[ 2.2, -6.6, 2.2 ]
|
||||
],
|
||||
"texOffset": [ 48, 48 ],
|
||||
"children": []
|
||||
},
|
||||
{
|
||||
"name": "HandAnchorLeft",
|
||||
"position": [ 0, -4, 0 ],
|
||||
"offsetFromPivot": [ 0, 0, 0 ],
|
||||
"size": [ 0, 0, 0 ],
|
||||
"rotation": [ 0, 0, 0 ],
|
||||
"texOffset": [ 36, 52 ],
|
||||
"children": [
|
||||
]
|
||||
}
|
||||
]
|
||||
}
|
||||
]
|
||||
},
|
||||
{
|
||||
"name": "RightLeg",
|
||||
"position": [ -2, -6, 0 ],
|
||||
"offsetFromPivot": [ 0, -6, 0 ],
|
||||
"size": [ 4, 12, 4 ],
|
||||
"rotation": [ 0, 0, 0 ],
|
||||
"texOffset": [ 16, 48 ],
|
||||
"children": [
|
||||
{
|
||||
"name": "RightLegLayer",
|
||||
"position": [ 0, 6, 0 ],
|
||||
"offsetFromPivot": [ 0, -6, 0 ],
|
||||
"size": [ 4, 12, 4 ],
|
||||
"rotation": [ 0, 0, 0 ],
|
||||
"vertexCoords": [
|
||||
[ -2.2, 6.6, -2.2 ],
|
||||
[ 2.2, 6.6, -2.2 ],
|
||||
[ 2.2, -6.6, -2.2 ],
|
||||
[ -2.2, -6.6, -2.2 ],
|
||||
[ 2.2, 6.6, 2.2 ],
|
||||
[ -2.2, 6.6, 2.2 ],
|
||||
[ -2.2, -6.6, 2.2 ],
|
||||
[ 2.2, -6.6, 2.2 ]
|
||||
],
|
||||
"texOffset": [ 0, 48 ],
|
||||
"children": []
|
||||
}
|
||||
]
|
||||
},
|
||||
{
|
||||
"name": "LeftLeg",
|
||||
"position": [ 2, -6, 0 ],
|
||||
"offsetFromPivot": [ 0, -6, 0 ],
|
||||
"size": [ 4, 12, 4 ],
|
||||
"rotation": [ 0, 0, 0 ],
|
||||
"texOffset": [ 0, 16 ],
|
||||
"children": [
|
||||
{
|
||||
"name": "LeftLegLayer",
|
||||
"position": [ 0, 6, 0 ],
|
||||
"offsetFromPivot": [ 0, -6, 0 ],
|
||||
"size": [ 4, 12, 4 ],
|
||||
"rotation": [ 0, 0, 0 ],
|
||||
"vertexCoords": [
|
||||
[ -2.2, 6.6, -2.2 ],
|
||||
[ 2.2, 6.6, -2.2 ],
|
||||
[ 2.2, -6.6, -2.2 ],
|
||||
[ -2.2, -6.6, -2.2 ],
|
||||
[ 2.2, 6.6, 2.2 ],
|
||||
[ -2.2, 6.6, 2.2 ],
|
||||
[ -2.2, -6.6, 2.2 ],
|
||||
[ 2.2, -6.6, 2.2 ]
|
||||
],
|
||||
"texOffset": [ 0, 32 ],
|
||||
"children": []
|
||||
}
|
||||
]
|
||||
}
|
||||
]
|
||||
}
|
||||
]
|
||||
}
|
||||
@@ -0,0 +1,72 @@
|
||||
{
|
||||
"title": "Zombie",
|
||||
"texturewidth": 64,
|
||||
"textureheight": 32,
|
||||
"tree": [
|
||||
{
|
||||
"name": "CenterPivot",
|
||||
"position": [ 0, 18, 0 ],
|
||||
"offsetFromPivot": [ 0, 0, 0 ],
|
||||
"size": [ 0, 0, 0 ],
|
||||
"rotation": [ 0, 0, 0 ],
|
||||
"texOffset": [ 16, 16 ],
|
||||
"children": [
|
||||
{
|
||||
"name": "Body",
|
||||
"position": [ 0, -6, 0 ],
|
||||
"offsetFromPivot": [ 0, 6, 0 ],
|
||||
"size": [ 8, 12, 4 ],
|
||||
"rotation": [ 0, 0, 0 ],
|
||||
"texOffset": [ 16, 16 ],
|
||||
"children": [
|
||||
{
|
||||
"name": "Head",
|
||||
"position": [ 0, 6, 0 ],
|
||||
"offsetFromPivot": [ 0, 4, 0 ],
|
||||
"size": [ 8, 8, 8 ],
|
||||
"rotation": [ 0, 0, 0 ],
|
||||
"texOffset": [ 0, 0 ],
|
||||
"children": []
|
||||
},
|
||||
{
|
||||
"name": "RightArm",
|
||||
"position": [ -5, 4, 0 ],
|
||||
"offsetFromPivot": [ -1, -4, 0 ],
|
||||
"size": [ 4, 12, 4 ],
|
||||
"rotation": [ -79.99995, 5.999998, -5.999998 ],
|
||||
"texOffset": [ 40, 16 ],
|
||||
"children": []
|
||||
},
|
||||
{
|
||||
"name": "LeftArm",
|
||||
"position": [ 5, 4, 0 ],
|
||||
"offsetFromPivot": [ 1, -4, 0 ],
|
||||
"size": [ 4, 12, 4 ],
|
||||
"rotation": [ -79.99995, -5.999998, 5.999998 ],
|
||||
"texOffset": [ 40, 16 ],
|
||||
"children": []
|
||||
}
|
||||
]
|
||||
},
|
||||
{
|
||||
"name": "RightLeg",
|
||||
"position": [ -1.9, -6, -0.1 ],
|
||||
"offsetFromPivot": [ 0, -6, 0 ],
|
||||
"size": [ 4, 12, 4 ],
|
||||
"rotation": [ 0, 0, 0 ],
|
||||
"texOffset": [ 0, 16 ],
|
||||
"children": []
|
||||
},
|
||||
{
|
||||
"name": "LeftLeg",
|
||||
"position": [ 1.9, -6, -0.1 ],
|
||||
"offsetFromPivot": [ 0, -6, 0 ],
|
||||
"size": [ 4, 12, 4 ],
|
||||
"rotation": [ 0, 0, 0 ],
|
||||
"texOffset": [ 0, 16 ],
|
||||
"children": []
|
||||
}
|
||||
]
|
||||
}
|
||||
]
|
||||
}
|
||||
@@ -0,0 +1,118 @@
|
||||
function traverse(res, node) {
|
||||
var children = node.tree || node.children;
|
||||
for (var i = 0; i < children.length; i++) {
|
||||
var obj = children[i];
|
||||
var target = {};
|
||||
|
||||
target.name = obj.name.toLowerCase();
|
||||
|
||||
obj.worldOffset = [
|
||||
obj.position[0] + obj.offsetFromPivot[0] + node.worldOffset[0],
|
||||
obj.position[1] + obj.offsetFromPivot[1] + node.worldOffset[1],
|
||||
-(obj.position[2] + obj.offsetFromPivot[2]) + node.worldOffset[2]
|
||||
];
|
||||
|
||||
// target.reset = ?
|
||||
// target.inflate = ?
|
||||
// target.mirror = ?
|
||||
// target.neverRender = ?
|
||||
|
||||
target.pivot = [
|
||||
obj.position[0] + node.worldOffset[0],
|
||||
obj.position[1] + node.worldOffset[1],
|
||||
-(obj.position[2] + node.worldOffset[2])
|
||||
];
|
||||
target.rotation = [
|
||||
obj.rotation[0],
|
||||
-obj.rotation[1],
|
||||
-obj.rotation[2]
|
||||
];
|
||||
//target.rotation = obj.rotation;
|
||||
|
||||
if (obj.size[0] !== 0 || obj.size[1] !== 0 || obj.size[2] !== 0) {
|
||||
target.cubes = [{
|
||||
// target.inflate = ?
|
||||
"origin": [
|
||||
obj.offsetFromPivot[0] - obj.size[0] / 2,
|
||||
obj.offsetFromPivot[1] - obj.size[1] / 2,
|
||||
-obj.offsetFromPivot[2] - obj.size[2] / 2
|
||||
],
|
||||
"size": obj.size,
|
||||
"uv": [
|
||||
Math.max(obj.texOffset[0], 0), // make these wrap around texturewidth/height
|
||||
Math.max(obj.texOffset[1], 0)
|
||||
]
|
||||
}];
|
||||
}
|
||||
|
||||
if (node.name) {
|
||||
target.parent = node.name.toLowerCase();
|
||||
}
|
||||
|
||||
target.material = "alpha";
|
||||
|
||||
res.push(target);
|
||||
|
||||
if (obj.children) {
|
||||
traverse(res, obj);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
function transform(modelJson, data) {
|
||||
var boneArray = [];
|
||||
|
||||
modelJson.worldOffset = [0, 0, 0];
|
||||
modelJson.position = [0, 0, 0];
|
||||
traverse(boneArray, modelJson);
|
||||
|
||||
data["geometry.new." + modelJson.title.toLowerCase()] = {
|
||||
"texturewidth": modelJson.texturewidth || 64,
|
||||
"textureheight": modelJson.textureheight || 64,
|
||||
"newformat": true,
|
||||
"bones": boneArray
|
||||
};
|
||||
}
|
||||
|
||||
function transformFile(inputFileName, transformedData) {
|
||||
try {
|
||||
var data = fs.readFileSync(inputFileName, "utf8");
|
||||
|
||||
console.log("Converting file: " + inputFileName);
|
||||
|
||||
var modelJson = JSON.parse(data);
|
||||
|
||||
// Convert craftstudio json to minecraft json
|
||||
transform(modelJson, transformedData);
|
||||
} catch (err) {
|
||||
console.log(err);
|
||||
}
|
||||
}
|
||||
|
||||
function saveFile(outputFileName, data) {
|
||||
fs.writeFile(outputFileName, JSON.stringify(data, null, ' '), function(err) {
|
||||
if (err) {
|
||||
return console.log(err);
|
||||
}
|
||||
console.log("Done!");
|
||||
});
|
||||
}
|
||||
|
||||
var fs = require("fs");
|
||||
|
||||
function parseFiles(dir, transformedData) {
|
||||
var files = fs.readdirSync(dir);
|
||||
for (var i in files){
|
||||
var name = dir + '/' + files[i];
|
||||
if (fs.statSync(name).isDirectory()){
|
||||
parseFiles(name, transformedData);
|
||||
} else if (name.indexOf('.csjsmodel') === name.length - 10) {
|
||||
transformFile(name, transformedData);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
var transformedData = {};
|
||||
parseFiles('.', transformedData);
|
||||
saveFile('new_characters.json', transformedData);
|
||||
|
||||
@@ -0,0 +1,10 @@
|
||||
{
|
||||
"textures":[
|
||||
"gui/background/panorama_0.png",
|
||||
"gui/background/panorama_1.png",
|
||||
"gui/background/panorama_2.png",
|
||||
"gui/background/panorama_3.png",
|
||||
"gui/background/panorama_4.png",
|
||||
"gui/background/panorama_5.png"
|
||||
]
|
||||
}
|
||||
@@ -0,0 +1,7 @@
|
||||
{
|
||||
"resources": {
|
||||
"DYNAMIC_BRIGHTNESS":"@DYNAMIC_BRIGHTNESS",
|
||||
"DYNAMIC_WEATHER":"@DYNAMIC_WEATHER",
|
||||
"DYNAMIC_SEASON_FOLIAGE":"@DYNAMIC_SEASON_FOLIAGE"
|
||||
}
|
||||
}
|
||||
|
After Width: | Height: | Size: 383 B |
|
After Width: | Height: | Size: 2.7 KiB |
|
After Width: | Height: | Size: 3.1 KiB |
|
After Width: | Height: | Size: 3.3 KiB |
|
After Width: | Height: | Size: 3.0 KiB |
|
After Width: | Height: | Size: 2.7 KiB |
|
After Width: | Height: | Size: 3.3 KiB |
|
After Width: | Height: | Size: 2.4 KiB |
|
After Width: | Height: | Size: 2.9 KiB |
|
After Width: | Height: | Size: 2.8 KiB |
|
After Width: | Height: | Size: 4.4 KiB |
|
After Width: | Height: | Size: 2.9 KiB |
|
After Width: | Height: | Size: 3.0 KiB |
|
After Width: | Height: | Size: 3.2 KiB |
|
After Width: | Height: | Size: 3.5 KiB |
|
After Width: | Height: | Size: 2.0 KiB |
|
After Width: | Height: | Size: 2.9 KiB |
|
After Width: | Height: | Size: 3.2 KiB |
|
After Width: | Height: | Size: 2.6 KiB |
|
After Width: | Height: | Size: 3.6 KiB |
|
After Width: | Height: | Size: 3.5 KiB |
|
After Width: | Height: | Size: 2.3 KiB |
|
After Width: | Height: | Size: 3.1 KiB |
|
After Width: | Height: | Size: 3.3 KiB |
|
After Width: | Height: | Size: 3.4 KiB |
|
After Width: | Height: | Size: 2.5 KiB |
|
After Width: | Height: | Size: 3.4 KiB |
|
After Width: | Height: | Size: 652 B |
|
After Width: | Height: | Size: 2.7 KiB |
|
After Width: | Height: | Size: 1.8 KiB |
|
After Width: | Height: | Size: 2.5 KiB |
|
After Width: | Height: | Size: 2.7 KiB |
|
After Width: | Height: | Size: 1.8 KiB |
|
After Width: | Height: | Size: 2.7 KiB |
|
After Width: | Height: | Size: 3.0 KiB |
|
After Width: | Height: | Size: 2.4 KiB |
|
After Width: | Height: | Size: 2.9 KiB |
|
After Width: | Height: | Size: 3.7 KiB |
|
After Width: | Height: | Size: 2.1 KiB |
|
After Width: | Height: | Size: 3.3 KiB |
|
After Width: | Height: | Size: 4.3 KiB |
|
After Width: | Height: | Size: 679 B |
|
After Width: | Height: | Size: 3.4 KiB |
|
After Width: | Height: | Size: 3.3 KiB |
|
After Width: | Height: | Size: 1.3 KiB |
|
After Width: | Height: | Size: 3.2 KiB |
|
After Width: | Height: | Size: 2.9 KiB |
|
After Width: | Height: | Size: 3.2 KiB |
|
After Width: | Height: | Size: 5.2 KiB |
|
After Width: | Height: | Size: 4.4 KiB |
|
After Width: | Height: | Size: 3.9 KiB |
|
After Width: | Height: | Size: 4.3 KiB |
|
After Width: | Height: | Size: 6.0 KiB |
|
After Width: | Height: | Size: 7.4 KiB |
|
After Width: | Height: | Size: 7.6 KiB |
|
After Width: | Height: | Size: 7.9 KiB |
|
After Width: | Height: | Size: 7.6 KiB |
|
After Width: | Height: | Size: 7.7 KiB |
|
After Width: | Height: | Size: 7.9 KiB |
|
After Width: | Height: | Size: 7.9 KiB |
|
After Width: | Height: | Size: 8.1 KiB |
|
After Width: | Height: | Size: 8.0 KiB |
|
After Width: | Height: | Size: 8.3 KiB |
|
After Width: | Height: | Size: 8.0 KiB |
|
After Width: | Height: | Size: 7.8 KiB |
|
After Width: | Height: | Size: 7.9 KiB |
|
After Width: | Height: | Size: 7.4 KiB |
|
After Width: | Height: | Size: 7.6 KiB |
|
After Width: | Height: | Size: 7.9 KiB |
|
After Width: | Height: | Size: 7.3 KiB |
|
After Width: | Height: | Size: 7.8 KiB |
|
After Width: | Height: | Size: 8.0 KiB |
|
After Width: | Height: | Size: 8.1 KiB |
|
After Width: | Height: | Size: 8.0 KiB |
|
After Width: | Height: | Size: 8.0 KiB |
|
After Width: | Height: | Size: 7.8 KiB |
|
After Width: | Height: | Size: 7.9 KiB |
|
After Width: | Height: | Size: 8.0 KiB |
|
After Width: | Height: | Size: 6.4 KiB |
|
After Width: | Height: | Size: 5.8 KiB |
|
After Width: | Height: | Size: 7.0 KiB |
|
After Width: | Height: | Size: 7.7 KiB |
|
After Width: | Height: | Size: 7.1 KiB |
|
After Width: | Height: | Size: 7.1 KiB |
|
After Width: | Height: | Size: 6.4 KiB |
|
After Width: | Height: | Size: 6.8 KiB |