Support single values for item components (#268)
This commit is contained in:
@@ -1,21 +1,25 @@
|
||||
{
|
||||
"$id": "blockception.minecraft.behavior.items.minecraft:use_animation",
|
||||
"additionalProperties": false,
|
||||
"required": [ "value" ],
|
||||
"type": "object",
|
||||
"title": "Use Animation",
|
||||
"description": "This component determines which animation plays when using the item.",
|
||||
"properties": {
|
||||
"value": {
|
||||
"title": "Value",
|
||||
"description": "Which animation to play when using the item.",
|
||||
"enum": [
|
||||
"bow",
|
||||
"eat",
|
||||
"crossbow",
|
||||
"drink",
|
||||
"camera"
|
||||
]
|
||||
}
|
||||
"$id": "blockception.minecraft.behavior.items.minecraft:use_animation",
|
||||
"title": "Use Animation",
|
||||
"description": "This component determines which animation plays when using the item.",
|
||||
"definitions": {
|
||||
"animation": {
|
||||
"enum": ["bow", "brush", "camera", "crossbow", "drink", "eat", "none", "spear", "spyglass"]
|
||||
}
|
||||
},
|
||||
"oneOf": [
|
||||
{ "$ref": "#/definitions/animation" },
|
||||
{
|
||||
"type": "object",
|
||||
"additionalProperties": false,
|
||||
"required": ["value"],
|
||||
"properties": {
|
||||
"value": {
|
||||
"title": "Value",
|
||||
"description": "Which animation to play when using the item.",
|
||||
"$ref": "#/definitions/animation"
|
||||
}
|
||||
}
|
||||
}
|
||||
]
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user