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,16 +4,27 @@
"type": "object",
"title": "Transformation",
"additionalProperties": false,
"properties": {
"add": {
"type": "object",
"description": "List of components to add to the entity after the transformation",
"properties": { "component_groups": { "type": "array", "description": "Names of component groups to add", "items": { "type": "string" } } },
"title": "Add",
"additionalProperties": false
"additionalProperties": false,
"properties": {
"component_groups": {
"type": "array",
"description": "Names of component groups to add",
"items": {
"type": "string"
}
}
}
},
"begin_transform_sound": {
"type": "string",
"description": "Sound to play when the transformation starts",
"title": "Begin Transform Sound"
},
"begin_transform_sound": { "type": "string", "description": "Sound to play when the transformation starts", "title": "Begin Transform Sound" },
"delay": {
"description": "Defines the properties of the delay for the transformation",
"title": "Delay",
@@ -45,9 +56,15 @@
"block_types": {
"type": "array",
"description": "List of blocks that can help the transformation of this entity",
"items": { "$ref": "../../../../general/block/identifier.json" }
"items": {
"$ref": "../../../../general/block/identifier.json"
}
},
"value": { "type": "number", "default": 0, "description": "Time in seconds before the entity transforms" }
"value": {
"type": "number",
"default": 0,
"description": "Time in seconds before the entity transforms"
}
}
}
]
@@ -64,7 +81,12 @@
"description": "Cause the entity to drop all items in inventory upon transformation",
"title": "Drop Inventory"
},
"into": { "type": "string", "default": "", "description": "Entity Definition that this entity will transform into", "title": "Into" },
"into": {
"type": "string",
"default": "",
"description": "Entity Definition that this entity will transform into",
"title": "Into"
},
"keep_level": {
"type": "boolean",
"default": false,
@@ -89,5 +111,18 @@
"description": "Sound to play when the entity is done transforming",
"title": "Transformation Sound"
}
}
},
"examples": [
{
"add": {},
"begin_transform_sound": "example",
"drop_equipment": false,
"drop_inventory": false,
"into": "",
"keep_level": false,
"keep_owner": false,
"preserve_equipment": false,
"transformation_sound": ""
}
]
}