Added base examples

This commit is contained in:
DaanV2
2021-10-11 18:10:42 +02:00
parent f188cfa6ee
commit 67ccb3d2d1
134 changed files with 2414 additions and 385 deletions

View File

@@ -4,7 +4,6 @@
"title": "Nameable",
"additionalProperties": false,
"description": "Allows this entity to be named (e.g. using a name tag).",
"definitions": {
"name_action": {
"type": "object",
@@ -33,15 +32,38 @@
"description": "If true, this entity can be renamed with name tags",
"title": "Allow Name Tag Renaming"
},
"always_show": { "type": "boolean", "default": false, "description": "If true, the name will always be shown", "title": "Always Show" },
"default_trigger": { "$ref": "../types/trigger.json", "description": "Trigger to run when the entity gets named", "title": "Default Trigger" },
"always_show": {
"type": "boolean",
"default": false,
"description": "If true, the name will always be shown",
"title": "Always Show"
},
"default_trigger": {
"$ref": "../types/trigger.json",
"description": "Trigger to run when the entity gets named",
"title": "Default Trigger"
},
"name_actions": {
"title": "Name Actions",
"description": "Describes the special names for this entity and the events to call when the entity acquires those names",
"oneOf": [
{ "type": "array", "items": { "$ref": "#/definitions/name_action" } },
{ "type": "object", "$ref": "#/definitions/name_action" }
{
"type": "array",
"items": {
"$ref": "#/definitions/name_action"
}
},
{
"type": "object",
"$ref": "#/definitions/name_action"
}
]
}
}
},
"examples": [
{
"allow_name_tag_renaming": true,
"always_show": false
}
]
}