Files
minecraft-bedrock-json-schemas/source/resource/textures/terrain_texture.json

79 lines
3.3 KiB
JSON
Raw Normal View History

2021-06-06 10:07:19 +00:00
{
2021-11-20 11:26:35 +01:00
"$schema": "http://json-schema.org/draft-07/schema",
2021-06-06 10:07:19 +00:00
"$id": "blockception.minecraft.resource.texture.terrain_texture",
"additionalProperties": false,
"type": "object",
"title": "Terrain Texture File",
2022-07-22 19:41:04 +02:00
"description": "An collection of texture definitions.",
2021-07-01 11:35:53 +02:00
"$comment": "UNDOCUMENTED",
2021-06-06 10:07:19 +00:00
"definitions": {
"texture": {
"oneOf": [
2022-07-22 19:41:04 +02:00
{ "description": "A texture file.", "type": "string", "pattern": "^textures/.+$", "title": "Texture" },
2021-06-06 10:07:19 +00:00
{
"type": "object",
"additionalProperties": false,
2022-07-22 19:41:04 +02:00
"description": "A collection of texture files.",
2021-06-06 10:07:19 +00:00
"title": "Texture",
"properties": {
2021-08-22 00:15:58 +02:00
"overlay_color": {
2022-07-22 19:41:04 +02:00
"description": "The color to apply to the texture.",
2021-08-22 00:15:58 +02:00
"title": "Overlay Color",
"format": "color-hex",
"examples": ["#FFFFFF"]
},
2022-07-22 19:41:04 +02:00
"path": { "description": "A texture file.", "type": "string", "pattern": "^textures/.+$", "title": "Path" },
2021-07-01 11:35:53 +02:00
"tint_color": {
"title": "Tint Color",
2022-07-22 19:41:04 +02:00
"description": "The tint color to be applied to the texture.",
2021-07-01 11:35:53 +02:00
"$comment": "UNDOCUMENTED",
"format": "color-hex",
2021-08-22 00:15:58 +02:00
"examples": ["#FFFFFF"],
2021-07-01 11:35:53 +02:00
"type": "string"
},
2021-06-06 10:07:19 +00:00
"variations": {
"type": "array",
"title": "Variantions",
2022-07-22 19:41:04 +02:00
"description": "The possible variations to use for this texture.",
2021-07-01 11:35:53 +02:00
"$comment": "UNDOCUMENTED",
2021-06-06 10:07:19 +00:00
"items": {
"type": "object",
"title": "Variantion",
2022-07-22 19:41:04 +02:00
"description": "One of the variantions, specified along with a possible weight.",
2021-07-01 11:35:53 +02:00
"$comment": "UNDOCUMENTED",
2021-06-06 10:07:19 +00:00
"required": ["path"],
"properties": {
2022-07-22 19:41:04 +02:00
"path": { "description": "A texture file.", "type": "string", "pattern": "^textures/.+$", "title": "Path" },
"weight": { "type": "integer", "title": "Weight", "description": "The weight of the texture.", "$comment": "UNDOCUMENTED" }
2021-06-06 10:07:19 +00:00
}
}
}
}
}
]
}
},
"properties": {
2022-07-22 19:41:04 +02:00
"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" },
2021-06-06 10:07:19 +00:00
"texture_data": {
"type": "object",
Minor changes to texture definition RegExp, & added "FANCY" material enum (#290) * 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
2024-05-28 14:49:27 +08:00
"propertyNames": { "pattern": "^[a-z0-9_:\\-]*$" },
2021-06-06 10:07:19 +00:00
"additionalProperties": {
"type": "object",
"title": "Texture Data",
2022-07-22 19:41:04 +02:00
"description": "UNDOCUMENTED.",
2021-07-01 11:35:53 +02:00
"$comment": "UNDOCUMENTED",
2021-06-06 10:07:19 +00:00
"properties": {
"textures": { "oneOf": [{ "$ref": "#/definitions/texture" }, { "type": "array", "items": { "$ref": "#/definitions/texture" } }] }
}
},
2022-07-22 19:41:04 +02:00
"description": "UNDOCUMENTED.",
2021-07-01 11:35:53 +02:00
"$comment": "UNDOCUMENTED",
2021-06-09 10:24:10 +02:00
"title": "Texture Data"
2021-06-06 10:07:19 +00:00
},
2022-07-22 19:41:04 +02:00
"texture_name": { "type": "string", "description": "UNDOCUMENTED.", "$comment": "UNDOCUMENTED", "title": "Texture Name" }
2021-06-06 10:07:19 +00:00
}
}