Files
minecraft-bedrock-json-schemas/source/resource/particles/components/particle_appearance_tinting.json
2022-07-22 19:41:04 +02:00

57 lines
2.4 KiB
JSON

{
"$id": "blockception.minecraft.resource.particle.1.10.0.particle_appearance_tinting",
"description": "Color fields are special, they can be either an RGB, or a `#RRGGBB` field (or RGBA or `AARRGGBB`). If RGB(A), the channels are from 0 to 1. If the string `#AARRGGBB`, then the values are hex from 00 to ff.",
"type": "object",
"title": "Particle Appearance Tinting Component For 1.10.0",
"additionalProperties": false,
"properties": {
"color": {
"title": "Color",
"description": "UNDOCUMENTED.",
"$comment": "UNDOCUMENTED",
"anyOf": [
{ "type": "array", "description": "Direct color field.", "items": { "$ref": "../../../molang/number.json" } },
{ "type": "string", "format": "color-hex", "description": "Direct color field." },
{
"description": "Interpolation based color.",
"type": "object",
"additionalProperties": false,
"properties": {
"gradient": {
"title": "Gradient",
"oneOf": [
{
"description": "An array of colors.",
"type": "array",
"items": { "type": "string", "description": "Color.", "title": "Color", "format": "color-hex", "examples": ["#FFFFFF"] }
},
{
"description": "An object of colors.",
"type": "object",
"propertyNames": { "pattern": "(^[\\-0-9]+$|^[\\-0-9]+\\.[\\-0-9]+$)" },
"additionalProperties": { "type": "string", "description": "Color.", "format": "color-hex", "examples": ["#FFFFFF"] }
},
{
"description": "An array of colors.",
"type": "array",
"items": {
"type": "array",
"minItems": 3,
"items": {
"oneOf": [
{ "type": "number", "description": "Color.", "title": "Color", "minimum": 0, "maximum": 1 },
{ "type": "string", "title": "Molang" }
]
}
}
}
]
},
"interpolant": { "$ref": "../../../molang/number.json", "description": "UNDOCUMENTED: interpolant.", "title": "Interpolant" }
}
}
]
}
}
}