* Implement some missing `ui/` schemas - Add `allow_debug_missing_texture` - Add `propagate_alpha` - Add `use_child_anchors` * Tweak descriptions of `item_ref` It should be noted that UI are referred to as "elements." Moreover, the examples used colon (`:`) instead of dots (`.`) which contradicts the given description. * Add more enum values to the `easing` property These are all known values, aside from the five that was given. * Update damage_source.json The list of damage sources have been updated and added new possible damage sources. Damage source `attack` has been deprecated going forward and has been split into two, namely: `entity_attack` and `entity_explosion`. Damage source `fatal` has also been deprecated in newer format/`min_engine` versions, and has caused content log errors upon testing. But will remain for backwards compatibility. This commit aims to resolve #185. Please refer to the damage sensor documentation here: https://github.com/MicrosoftDocs/minecraft-creator/blob/main/creator/Reference/Content/EntityReference/Examples/EntityComponents/minecraftComponent_damage_sensor.md * Define `pack_scope` and `product_type` fields for pack manifests With the release of Add-Ons in the marketplace, these property fields have become present in pack manifests. * Tweak RegExp for defining texture names - It will now match for a colon text (`:`) whereby namespaces are defined with - Fix completely off-the-mark RegExp for `item_texture.json` and `terrain_texture.json` files. * Add `FANCY` material enum * Merge branch
79 lines
3.3 KiB
JSON
79 lines
3.3 KiB
JSON
{
|
|
"$schema": "http://json-schema.org/draft-07/schema",
|
|
"$id": "blockception.minecraft.resource.texture.terrain_texture",
|
|
"additionalProperties": false,
|
|
"type": "object",
|
|
"title": "Terrain Texture File",
|
|
"description": "An collection of texture definitions.",
|
|
"$comment": "UNDOCUMENTED",
|
|
"definitions": {
|
|
"texture": {
|
|
"oneOf": [
|
|
{ "description": "A texture file.", "type": "string", "pattern": "^textures/.+$", "title": "Texture" },
|
|
{
|
|
"type": "object",
|
|
"additionalProperties": false,
|
|
"description": "A collection of texture files.",
|
|
"title": "Texture",
|
|
"properties": {
|
|
"overlay_color": {
|
|
"description": "The color to apply to the texture.",
|
|
"title": "Overlay Color",
|
|
"format": "color-hex",
|
|
"examples": ["#FFFFFF"]
|
|
},
|
|
"path": { "description": "A texture file.", "type": "string", "pattern": "^textures/.+$", "title": "Path" },
|
|
"tint_color": {
|
|
"title": "Tint Color",
|
|
"description": "The tint color to be applied to the texture.",
|
|
"$comment": "UNDOCUMENTED",
|
|
"format": "color-hex",
|
|
"examples": ["#FFFFFF"],
|
|
"type": "string"
|
|
},
|
|
"variations": {
|
|
"type": "array",
|
|
"title": "Variantions",
|
|
"description": "The possible variations to use for this texture.",
|
|
"$comment": "UNDOCUMENTED",
|
|
"items": {
|
|
"type": "object",
|
|
"title": "Variantion",
|
|
"description": "One of the variantions, specified along with a possible weight.",
|
|
"$comment": "UNDOCUMENTED",
|
|
"required": ["path"],
|
|
"properties": {
|
|
"path": { "description": "A texture file.", "type": "string", "pattern": "^textures/.+$", "title": "Path" },
|
|
"weight": { "type": "integer", "title": "Weight", "description": "The weight of the texture.", "$comment": "UNDOCUMENTED" }
|
|
}
|
|
}
|
|
}
|
|
}
|
|
}
|
|
]
|
|
}
|
|
},
|
|
"properties": {
|
|
"num_mip_levels": { "type": "integer", "title": "Num Mip Levels", "description": "UNDOCUMENTED.", "$comment": "UNDOCUMENTED" },
|
|
"padding": { "type": "integer", "title": "Padding", "description": "UNDOCUMENTED.", "$comment": "UNDOCUMENTED" },
|
|
"resource_pack_name": { "type": "string", "title": "Resource Pack Name", "description": "UNDOCUMENTED.", "$comment": "UNDOCUMENTED" },
|
|
"texture_data": {
|
|
"type": "object",
|
|
"propertyNames": { "pattern": "^[a-z0-9_:\\-]*$" },
|
|
"additionalProperties": {
|
|
"type": "object",
|
|
"title": "Texture Data",
|
|
"description": "UNDOCUMENTED.",
|
|
"$comment": "UNDOCUMENTED",
|
|
"properties": {
|
|
"textures": { "oneOf": [{ "$ref": "#/definitions/texture" }, { "type": "array", "items": { "$ref": "#/definitions/texture" } }] }
|
|
}
|
|
},
|
|
"description": "UNDOCUMENTED.",
|
|
"$comment": "UNDOCUMENTED",
|
|
"title": "Texture Data"
|
|
},
|
|
"texture_name": { "type": "string", "description": "UNDOCUMENTED.", "$comment": "UNDOCUMENTED", "title": "Texture Name" }
|
|
}
|
|
}
|