Support single values for item components (#268)

This commit is contained in:
QuazChick
2024-05-11 10:24:22 +01:00
committed by GitHub
parent ffdf30a42d
commit 0ed8493085
12 changed files with 225 additions and 100 deletions

View File

@@ -1,12 +1,25 @@
{
"$id": "blockception.minecraft.behavior.items.minecraft:foil",
"additionalProperties": false,
"type": "object",
"title": "Glint",
"description": "The glint component determines whether the item has the enchanted glint render effect on it",
"required": ["value"],
"properties": { "value": { "type": "boolean", "title": "Value", "description": "Whether the item has the glint effect." } },
"examples": [
{ "value": true }
"default": false,
"examples": [true, { "value": true }],
"oneOf": [
{
"type": "boolean"
},
{
"type": "object",
"additionalProperties": false,
"required": ["value"],
"properties": {
"value": {
"title": "Value",
"description": "Whether the item has the glint effect.",
"type": "boolean",
"default": false
}
}
}
]
}