From 3e00df700a80ef71dd4ebd821c3f93880a0c8d0d Mon Sep 17 00:00:00 2001 From: Xterionix <72647213+Xterionix@users.noreply.github.com> Date: Tue, 12 Mar 2024 13:13:16 +0500 Subject: [PATCH] - Update geometry component (#219) * - Update geometry component * - Update geometry to use pattern * - Change regex --- .../blocks/format/components/geometry.json | 17 ++++------------- 1 file changed, 4 insertions(+), 13 deletions(-) diff --git a/source/behavior/blocks/format/components/geometry.json b/source/behavior/blocks/format/components/geometry.json index d180da2f..69a29f7c 100644 --- a/source/behavior/blocks/format/components/geometry.json +++ b/source/behavior/blocks/format/components/geometry.json @@ -4,18 +4,8 @@ "description": "The description identifier of the geometry file to use to render this block. This identifier must match an existing geometry identifier in any of the currently loaded resource packs.", "oneOf": [ { - "type": "string" - }, - { - "type": "object", - "properties": { - "identifier": { - "title": "Identifier", - "description": "The description identifier of the geometry file to use to render this block. This identifier must match an existing geometry identifier in any of the currently loaded resource packs.", - "type": "string", - "enum": ["minecraft:geometry.full_block", "minecraft:geometry.cross"] - } - } + "type": "string", + "pattern": "[a-zA-Z0-9_\\.:\\=]" }, { "type": "object", @@ -25,7 +15,8 @@ "identifier": { "title": "Identifier", "description": "The description identifier of the geometry file to use to render this block. This identifier must match an existing geometry identifier in any of the currently loaded resource packs.", - "type": "string" + "type": "string", + "pattern": "[a-zA-Z0-9_\\.:\\=]" }, "bone_visibility": { "title": "Bone Visibility",