2023-12-14 14:42:38 +01:00
|
|
|
{
|
|
|
|
|
"$schema": "http://json-schema.org/draft-07/schema",
|
|
|
|
|
"$id": "blockception.minecraft.resource.texture.aseprite_flipbook",
|
|
|
|
|
"additionalProperties": false,
|
|
|
|
|
"description": "The file that specifies Aseprite/libresprite flipbook animation.",
|
|
|
|
|
"title": "Aseprite Flipbook File",
|
|
|
|
|
"type": "object",
|
2023-12-14 18:53:21 +01:00
|
|
|
"required": ["meta", "frames"],
|
2023-12-14 14:42:38 +01:00
|
|
|
"properties": {
|
|
|
|
|
"meta": {
|
2023-12-14 18:53:21 +01:00
|
|
|
"title": "Meta",
|
2023-12-14 14:42:38 +01:00
|
|
|
"type": "object",
|
|
|
|
|
"description": "The meta data of the flipbook.",
|
|
|
|
|
"additionalProperties": true,
|
2023-12-14 18:53:21 +01:00
|
|
|
"required": ["size", "image"],
|
2023-12-14 14:42:38 +01:00
|
|
|
"properties": {
|
|
|
|
|
"size": {
|
|
|
|
|
"type": "object",
|
2023-12-14 18:53:21 +01:00
|
|
|
"title": "Size",
|
2023-12-14 14:42:38 +01:00
|
|
|
"description": "The size of the flipbook sprite sheet.",
|
2023-12-14 18:53:21 +01:00
|
|
|
"required": ["w", "h"],
|
|
|
|
|
"examples": [
|
|
|
|
|
{
|
|
|
|
|
"w": 16,
|
|
|
|
|
"h": 16
|
|
|
|
|
}
|
|
|
|
|
],
|
2023-12-14 14:42:38 +01:00
|
|
|
"properties": {
|
|
|
|
|
"w": {
|
2023-12-14 18:53:21 +01:00
|
|
|
"title": "Width",
|
2023-12-14 14:42:38 +01:00
|
|
|
"description": "The width of the sprite sheet.",
|
2023-12-14 18:53:21 +01:00
|
|
|
"type": "integer",
|
|
|
|
|
"default": 16
|
2023-12-14 14:42:38 +01:00
|
|
|
},
|
|
|
|
|
"h": {
|
2023-12-14 18:53:21 +01:00
|
|
|
"title": "Height",
|
2023-12-14 14:42:38 +01:00
|
|
|
"description": "The height of the sprite sheet.",
|
2023-12-14 18:53:21 +01:00
|
|
|
"type": "integer",
|
|
|
|
|
"default": 16
|
2023-12-14 14:42:38 +01:00
|
|
|
}
|
2023-12-14 18:53:21 +01:00
|
|
|
}
|
2023-12-14 14:42:38 +01:00
|
|
|
},
|
|
|
|
|
"image": {
|
2023-12-14 18:53:21 +01:00
|
|
|
"title": "Image",
|
2023-12-14 14:42:38 +01:00
|
|
|
"description": "The path to the sprite sheet. The value is required, but not used.",
|
|
|
|
|
"type": "string"
|
|
|
|
|
}
|
2023-12-14 18:53:21 +01:00
|
|
|
}
|
2023-12-14 14:42:38 +01:00
|
|
|
},
|
|
|
|
|
"frames": {
|
2023-12-14 18:53:21 +01:00
|
|
|
"title": "Frames",
|
2023-12-14 14:42:38 +01:00
|
|
|
"type": "array",
|
|
|
|
|
"description": "The frames of the flipbook.",
|
|
|
|
|
"items": {
|
2023-12-14 18:53:21 +01:00
|
|
|
"title": "Frame",
|
|
|
|
|
"description": "A frame of the flipbook.",
|
2023-12-14 14:42:38 +01:00
|
|
|
"type": "object",
|
|
|
|
|
"additionalProperties": true,
|
2023-12-14 18:53:21 +01:00
|
|
|
"required": ["duration", "frame"],
|
2023-12-14 14:42:38 +01:00
|
|
|
"properties": {
|
|
|
|
|
"duration": {
|
2023-12-14 18:53:21 +01:00
|
|
|
"title": "Duration",
|
2023-12-14 14:42:38 +01:00
|
|
|
"description": "The duration of the frame in milliseconds.",
|
|
|
|
|
"type": "integer",
|
|
|
|
|
"minimum": 1
|
|
|
|
|
},
|
|
|
|
|
"frame": {
|
2023-12-14 18:53:21 +01:00
|
|
|
"title": "Frame",
|
2023-12-14 14:42:38 +01:00
|
|
|
"type": "object",
|
|
|
|
|
"description": "The position of the frame in the sprite sheet (UV).",
|
2023-12-14 18:53:21 +01:00
|
|
|
"required": ["x", "y"],
|
|
|
|
|
"examples": [
|
|
|
|
|
{
|
|
|
|
|
"x": 0,
|
|
|
|
|
"y": 0
|
|
|
|
|
}
|
|
|
|
|
],
|
2023-12-14 14:42:38 +01:00
|
|
|
"properties": {
|
|
|
|
|
"x": {
|
2023-12-14 18:53:21 +01:00
|
|
|
"title": "X",
|
2023-12-14 14:42:38 +01:00
|
|
|
"type": "integer",
|
|
|
|
|
"description": "The x position of the frame in the sprite sheet.",
|
|
|
|
|
"minimum": 0
|
|
|
|
|
},
|
|
|
|
|
"y": {
|
2023-12-14 18:53:21 +01:00
|
|
|
"title": "Y",
|
2023-12-14 14:42:38 +01:00
|
|
|
"type": "integer",
|
|
|
|
|
"description": "The y position of the frame in the sprite sheet.",
|
|
|
|
|
"minimum": 0
|
|
|
|
|
}
|
2023-12-14 18:53:21 +01:00
|
|
|
}
|
2023-12-14 14:42:38 +01:00
|
|
|
}
|
2023-12-14 18:53:21 +01:00
|
|
|
}
|
2023-12-14 14:42:38 +01:00
|
|
|
}
|
|
|
|
|
}
|
2023-12-14 18:53:21 +01:00
|
|
|
}
|
2023-12-14 14:42:38 +01:00
|
|
|
}
|