Skip to content

Commit

Permalink
Minor changes to texture definition RegExp, & added "FANCY" material …
Browse files Browse the repository at this point in the history
…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
  • Loading branch information
ライゼン1920 authored May 28, 2024
1 parent 3476c4c commit 38ea808
Show file tree
Hide file tree
Showing 5 changed files with 16 additions and 3 deletions.
12 changes: 12 additions & 0 deletions source/general/manifest/manifest.1.json
Original file line number Diff line number Diff line change
Expand Up @@ -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",
"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" },
"base_game_version": { "$ref": "../Version.json", "description": "UNDOCUMENTED: base game version.", "title": "Base Game Version" }
},
Expand Down Expand Up @@ -127,6 +133,12 @@
"license": { "type": "string", "description": "The license of the pack.", "title": "License" },
"url": { "type": "string", "description": "The home website of your pack.", "title": "Url" },
"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"
}
}
Expand Down
1 change: 1 addition & 0 deletions source/resource/materials/materials.json
Original file line number Diff line number Diff line change
Expand Up @@ -52,6 +52,7 @@
"ENABLE_LIGHT",
"ENABLE_VERTEX_TINT_MASK",
"END_PORTAL",
"FANCY",
"FLIP_OCCLUSION",
"FOG",
"FORCE_DEPTH_ZERO",
Expand Down
2 changes: 1 addition & 1 deletion source/resource/textures/flipbook_textures.json
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@
"atlas_tile": {
"description": "UNDOCUMENTED.",
"$comment": "UNDOCUMENTED",
"pattern": "^[a-z0-9_\\-]*$",
"pattern": "^[a-z0-9_:\\-]*$",
"title": "Atlas Index",
"type": "string"
},
Expand Down
2 changes: 1 addition & 1 deletion source/resource/textures/item_texture.json
Original file line number Diff line number Diff line change
Expand Up @@ -70,7 +70,7 @@
"description": "UNDOCUMENTED.",
"$comment": "UNDOCUMENTED",
"type": "object",
"propertyNames": { "pattern": "^[\\w_\\-\\.]+$" },
"propertyNames": { "pattern": "^[a-z0-9_:\\-]*$" },
"additionalProperties": {
"title": "Texture Data",
"description": "UNDOCUMENTED.",
Expand Down
2 changes: 1 addition & 1 deletion source/resource/textures/terrain_texture.json
Original file line number Diff line number Diff line change
Expand Up @@ -59,7 +59,7 @@
"resource_pack_name": { "type": "string", "title": "Resource Pack Name", "description": "UNDOCUMENTED.", "$comment": "UNDOCUMENTED" },
"texture_data": {
"type": "object",
"propertyNames": { "pattern": "^[\\w_\\-\\.]+$" },
"propertyNames": { "pattern": "^[a-z0-9_:\\-]*$" },
"additionalProperties": {
"type": "object",
"title": "Texture Data",
Expand Down

0 comments on commit 38ea808

Please sign in to comment.