Skip to content

Commit

Permalink
Tweak descriptions of item_ref
Browse files Browse the repository at this point in the history
It should be noted that UI are referred to as "elements."

Moreover, the examples used colon (`:`) instead of dots (`.`) which contradicts the given description.
  • Loading branch information
r4isen1920 committed Nov 6, 2023
1 parent da4656e commit f17ed89
Showing 1 changed file with 6 additions and 6 deletions.
12 changes: 6 additions & 6 deletions source/resource/ui/general/item_ref.json
Original file line number Diff line number Diff line change
Expand Up @@ -2,17 +2,17 @@
"$schema": "http://json-schema.org/draft-07/schema",
"anyOf": [
{
"title": "Item reference",
"description": "A reference to an item: using the following syntax: [element_name]@[namespace_reference].[element_name_reference]",
"title": "Element reference",
"description": "A reference to an element: using the following syntax: [element_name]@[namespace_reference].[element_name_reference]",
"type": "string",
"examples": ["button@minecraft", "button@minecraft:ui"],
"examples": ["button@minecraft", "button@minecraft.ui"],
"pattern": "^[a-zA-Z0-9_]*@[a-zA-Z0-9_]+(\\.[a-zA-Z0-9_]+)?$"
},
{
"title": "Item reference",
"description": "A reference to an item: using the following syntax: [namespace_reference].[element_name_reference]",
"title": "Element reference",
"description": "A reference to an element: using the following syntax: [namespace_reference].[element_name_reference]",
"type": "string",
"examples": ["button@minecraft", "button@minecraft:ui"],
"examples": ["button@minecraft", "button@minecraft.ui"],
"pattern": "[a-zA-Z0-9_]+(\\.[a-zA-Z0-9_]+)?$"
},
{
Expand Down

0 comments on commit f17ed89

Please sign in to comment.