Files
minecraft-bedrock-json-schemas/source/resource/textures/item_texture.json
ライゼン1920 38ea808af5 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 08:49:27 +02:00

90 lines
3.2 KiB
JSON

{
"$schema": "http://json-schema.org/draft-07/schema",
"$id": "blockception.minecraft.resource.texture.item_texture",
"additionalProperties": false,
"type": "object",
"title": "Item Texture File",
"description": "UNDOCUMENTED.",
"$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": "UNDOCUMENTED.",
"$comment": "UNDOCUMENTED",
"format": "color-hex",
"examples": ["#FFFFFF"],
"type": "string"
},
"variations": {
"type": "array",
"title": "Variantions",
"description": "UNDOCUMENTED.",
"$comment": "UNDOCUMENTED",
"items": {
"type": "object",
"title": "Variantion",
"description": "UNDOCUMENTED.",
"$comment": "UNDOCUMENTED",
"required": ["path"],
"properties": {
"path": { "description": "A texture file.", "type": "string", "pattern": "^textures/.+$", "title": "Path" },
"weight": {
"type": "integer",
"title": "Weight",
"description": "UNDOCUMENTED.",
"$comment": "UNDOCUMENTED"
}
}
}
}
}
}
]
}
},
"properties": {
"resource_pack_name": {
"type": "string",
"title": "Resource Pack Name",
"description": "UNDOCUMENTED.",
"$comment": "UNDOCUMENTED"
},
"texture_data": {
"title": "Texture Data",
"description": "UNDOCUMENTED.",
"$comment": "UNDOCUMENTED",
"type": "object",
"propertyNames": { "pattern": "^[a-z0-9_:\\-]*$" },
"additionalProperties": {
"title": "Texture Data",
"description": "UNDOCUMENTED.",
"$comment": "UNDOCUMENTED",
"type": "object",
"additionalProperties": false,
"properties": {
"textures": {
"oneOf": [{ "$ref": "#/definitions/texture" }, { "description": "A collection of textures.", "title": "Texture Data", "type": "array", "items": { "$ref": "#/definitions/texture" } }]
}
}
}
},
"texture_name": { "title": "Texture Name", "description": "UNDOCUMENTED.", "$comment": "UNDOCUMENTED", "type": "string" }
}
}