Support single values for item components (#268)
This commit is contained in:
@@ -2,11 +2,24 @@
|
||||
"$id": "blockception.minecraft.behavior.items.minecraft:should_despawn",
|
||||
"title": "Should Despawn",
|
||||
"description": "Should despawn component determines if the item should eventually despawn while floating in the world",
|
||||
"additionalProperties": false,
|
||||
"type": "object",
|
||||
"required": ["value"],
|
||||
"properties": { "value": { "type": "boolean", "title": "Value", "description": "Whether the item should eventually despawn while floating in the world" } },
|
||||
"examples": [
|
||||
{ "value": false }
|
||||
"default": true,
|
||||
"examples": [false, { "value": false }],
|
||||
"oneOf": [
|
||||
{
|
||||
"type": "boolean"
|
||||
},
|
||||
{
|
||||
"type": "object",
|
||||
"additionalProperties": false,
|
||||
"required": ["value"],
|
||||
"properties": {
|
||||
"value": {
|
||||
"title": "Value",
|
||||
"description": "Whether the item should eventually despawn while floating in the world",
|
||||
"type": "boolean",
|
||||
"default": true
|
||||
}
|
||||
}
|
||||
}
|
||||
]
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user