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
This commit is contained in:
ライゼン1920
2024-05-28 14:49:27 +08:00
committed by GitHub
parent 3476c4c2de
commit 38ea808af5
5 changed files with 16 additions and 3 deletions

View File

@@ -38,6 +38,12 @@
"description": "This is the minimum version of the game that this pack was written for. This helps the game identify whether any backwards compatibility is needed for your pack. You should always use the highest version currently available when creating packs", "description": "This is the minimum version of the game that this pack was written for. This helps the game identify whether any backwards compatibility is needed for your pack. You should always use the highest version currently available when creating packs",
"title": "Minimum Engine Version" "title": "Minimum Engine Version"
}, },
"pack_scope": {
"title": "Pack Scope",
"type": "string",
"description": "This is the scope of the pack. This is only for resource packs",
"enum": ["global", "world", "any"]
},
"lock_template_options": { "type": "boolean", "description": "UNDOCUMENTED: lock template options.", "title": "Lock Template Options" }, "lock_template_options": { "type": "boolean", "description": "UNDOCUMENTED: lock template options.", "title": "Lock Template Options" },
"base_game_version": { "$ref": "../Version.json", "description": "UNDOCUMENTED: base game version.", "title": "Base Game Version" } "base_game_version": { "$ref": "../Version.json", "description": "UNDOCUMENTED: base game version.", "title": "Base Game Version" }
}, },
@@ -127,6 +133,12 @@
"license": { "type": "string", "description": "The license of the pack.", "title": "License" }, "license": { "type": "string", "description": "The license of the pack.", "title": "License" },
"url": { "type": "string", "description": "The home website of your pack.", "title": "Url" }, "url": { "type": "string", "description": "The home website of your pack.", "title": "Url" },
"description": "UNDOCUMENTED: metadata.", "description": "UNDOCUMENTED: metadata.",
"product_type": {
"type": "string",
"title": "Product Type",
"description": "The type of product this pack is. This is used to determine how the pack is displayed in the store.",
"enum": ["", "addon"]
},
"title": "Metadata" "title": "Metadata"
} }
} }

View File

@@ -52,6 +52,7 @@
"ENABLE_LIGHT", "ENABLE_LIGHT",
"ENABLE_VERTEX_TINT_MASK", "ENABLE_VERTEX_TINT_MASK",
"END_PORTAL", "END_PORTAL",
"FANCY",
"FLIP_OCCLUSION", "FLIP_OCCLUSION",
"FOG", "FOG",
"FORCE_DEPTH_ZERO", "FORCE_DEPTH_ZERO",

View File

@@ -20,7 +20,7 @@
"atlas_tile": { "atlas_tile": {
"description": "UNDOCUMENTED.", "description": "UNDOCUMENTED.",
"$comment": "UNDOCUMENTED", "$comment": "UNDOCUMENTED",
"pattern": "^[a-z0-9_\\-]*$", "pattern": "^[a-z0-9_:\\-]*$",
"title": "Atlas Index", "title": "Atlas Index",
"type": "string" "type": "string"
}, },

View File

@@ -70,7 +70,7 @@
"description": "UNDOCUMENTED.", "description": "UNDOCUMENTED.",
"$comment": "UNDOCUMENTED", "$comment": "UNDOCUMENTED",
"type": "object", "type": "object",
"propertyNames": { "pattern": "^[\\w_\\-\\.]+$" }, "propertyNames": { "pattern": "^[a-z0-9_:\\-]*$" },
"additionalProperties": { "additionalProperties": {
"title": "Texture Data", "title": "Texture Data",
"description": "UNDOCUMENTED.", "description": "UNDOCUMENTED.",

View File

@@ -59,7 +59,7 @@
"resource_pack_name": { "type": "string", "title": "Resource Pack Name", "description": "UNDOCUMENTED.", "$comment": "UNDOCUMENTED" }, "resource_pack_name": { "type": "string", "title": "Resource Pack Name", "description": "UNDOCUMENTED.", "$comment": "UNDOCUMENTED" },
"texture_data": { "texture_data": {
"type": "object", "type": "object",
"propertyNames": { "pattern": "^[\\w_\\-\\.]+$" }, "propertyNames": { "pattern": "^[a-z0-9_:\\-]*$" },
"additionalProperties": { "additionalProperties": {
"type": "object", "type": "object",
"title": "Texture Data", "title": "Texture Data",