Code (cpp):
{
"__comment": "Faithful Revenge",
"AmbientOcclusion": false,
"textures": {
"texture": "#bottom",
"particle": "#bottom",
"texture_top": "#top",
"normal": "#normal"
},
"elements": [
{
"from": [ 0, 0, 8 ],
"to": [ 16, 16, 8 ],
"rotation": { "origin": [ 8, 2, 8 ], "axis": "x", "angle": 22.5, "rescale": true },
"faces": {
"north": { "uv": [ 0, 0, 16, 16 ], "texture": "#texture" },
"south": { "uv": [ 0, 0, 16, 16 ], "texture": "#texture" }
}
},
{
"from": [ 0, 0, 8 ],
"to": [ 16, 16, 8 ],
"rotation": { "origin": [ 8, 2, 8 ], "axis": "x", "angle": -22.5, "rescale": true },
"faces": {
"north": { "uv": [ 0, 0, 16, 16 ], "texture": "#texture" },
"south": { "uv": [ 0, 0, 16, 16 ], "texture": "#texture" }
}
},
{
"from": [ 8, 0, 0 ],
"to": [ 8, 16, 16 ],
"rotation": { "origin": [ 8, 2, 8 ], "axis": "z", "angle": 22.5, "rescale": true },
"faces": {
"west": { "uv": [ 0, 0, 16, 16 ], "texture": "#texture" },
"east": { "uv": [ 0, 0, 16, 16 ], "texture": "#texture" }
}
},
{
"from": [ 8, 0, 0 ],
"to": [ 8, 16, 16 ],
"rotation": { "origin": [ 8, 2, 8 ], "axis": "z", "angle": -22.5, "rescale": true },
"faces": {
"west": { "uv": [ 0, 0, 16, 16 ], "texture": "#texture" },
"east": { "uv": [ 0, 0, 16, 16 ], "texture": "#texture" }
}
},
{
"from": [ 0, 16, 13 ],
"to": [ 16, 32, 13 ],
"rotation": { "origin": [ 8, 16, 8 ], "axis": "x", "angle": 22.5, "rescale": true },
"faces": {
"north": { "uv": [ 0, 0, 16, 16 ], "texture": "#texture_top" },
"south": { "uv": [ 0, 0, 16, 16 ], "texture": "#texture_top" }
}
},
{
"from": [ 0, 16, 3 ],
"to": [ 16, 32, 3 ],
"rotation": { "origin": [ 8, 16, 8 ], "axis": "x", "angle": -22.5, "rescale": true },
"faces": {
"north": { "uv": [ 0, 0, 16, 16 ], "texture": "#texture_top" },
"south": { "uv": [ 0, 0, 16, 16 ], "texture": "#texture_top" }
}
},
{
"from": [ 3, 16, 0 ],
"to": [ 3, 32, 16 ],
"rotation": { "origin": [ 8, 16, 8 ], "axis": "z", "angle": 22.5, "rescale": true },
"faces": {
"west": { "uv": [ 0, 0, 16, 16 ], "texture": "#texture_top" },
"east": { "uv": [ 0, 0, 16, 16 ], "texture": "#texture_top" }
}
},
{
"from": [ 13, 16, 0 ],
"to": [ 13, 32, 16 ],
"rotation": { "origin": [ 8, 16, 8 ], "axis": "z", "angle": -22.5, "rescale": true },
"faces": {
"west": { "uv": [ 0, 0, 16, 16 ], "texture": "#texture_top" },
"east": { "uv": [ 0, 0, 16, 16 ], "texture": "#texture_top" }
}
},
{
"from": [ 0, 0, 8 ],
"to": [ 16, 16, 8 ],
"rotation": {
"origin": [ 8, 2, 8 ],
"axis": "x",
"angle": 45,
"rescale": false
},
"faces": {
"north": {
"uv": [ 0, 0, 16, 16 ],
"tintindex": 0,
"texture": "#normal"
},
"south": {
"uv": [ 0, 0, 16, 16 ],
"tintindex": 0,
"texture": "#normal"
}
}
},
{
"from": [ 0, 0, 8 ],
"to": [ 16, 16, 8 ],
"rotation": {
"origin": [ 8, 2, 8 ],
"axis": "x",
"angle": -45,
"rescale": false
},
"faces": {
"north": {
"uv": [ 0, 0, 16, 16 ],
"tintindex": 0,
"texture": "#normal"
},
"south": {
"uv": [ 0, 0, 16, 16 ],
"tintindex": 0,
"texture": "#normal"
}
}
},
{
"from": [ 8, 0, 0 ],
"to": [ 8, 16, 16 ],
"rotation": {
"origin": [ 8, 2, 8 ],
"axis": "z",
"angle": 45,
"rescale": false
},
"faces": {
"west": {
"uv": [ 0, 0, 16, 16 ],
"tintindex": 0,
"texture": "#normal"
},
"east": {
"uv": [ 0, 0, 16, 16 ],
"tintindex": 0,
"texture": "#normal"
}
}
},
{
"from": [ 8, 0, 0 ],
"to": [ 8, 16, 16 ],
"rotation": {
"origin": [ 8, 2, 8 ],
"axis": "z",
"angle": -45,
"rescale": false
},
"faces": {
"west": {
"uv": [ 0, 0, 16, 16 ],
"tintindex": 0,
"texture": "#normal"
},
"east": {
"uv": [ 0, 0, 16, 16 ],
"tintindex": 0,
"texture": "#normal"
}
}
},
{ "from": [ 0.8, 0, 8 ],
"to": [ 15.2, 16, 8 ],
"rotation": { "origin": [ 8, 8, 8 ], "axis": "y", "angle": 45, "rescale": true },
"shade": false,
"faces": {
"north": { "uv": [ 0, 0, 16, 16 ], "texture": "#normal", "tintindex": 0 },
"south": { "uv": [ 0, 0, 16, 16 ], "texture": "#normal", "tintindex": 0 }
}
},
{ "from": [ 8, 0, 0.8 ],
"to": [ 8, 16, 15.2 ],
"rotation": { "origin": [ 8, 8, 8 ], "axis": "y", "angle": 45, "rescale": true },
"shade": false,
"faces": {
"west": { "uv": [ 0, 0, 16, 16 ], "texture": "#normal", "tintindex": 0 },
"east": { "uv": [ 0, 0, 16, 16 ], "texture": "#normal", "tintindex": 0 }
}
}
]
}
Le tintindex ne doit s'appliquer qu'aux textures sur lesquelles je l'ai déjà indiqué. Merci d'avance de votre aide !