Added vscode snippets to filters

This commit is contained in:
DaanV2
2021-11-01 10:52:12 +01:00
parent 4976eed6bb
commit e38bd9cf0b

View File

@@ -2,18 +2,42 @@
"$id": "blockception.minecraft.behavior.entities.minecraft.filters", "$id": "blockception.minecraft.behavior.entities.minecraft.filters",
"title": "Filters", "title": "Filters",
"$ref": "#/definitions/groups_spec", "$ref": "#/definitions/groups_spec",
"examples": [ "examples": [{ "test": "is_family", "value": "example" }, { "test": "has_tag", "value": "example" }, []],
{ "test": "is_family", "value": "example" },
{ "test": "has_tag", "value": "example" }
],
"defaultSnippets": [
{
"label": "test",
"body": { "test": "$1", "value": "$2" }
}
],
"definitions": { "definitions": {
"filters_spec": { "filters_spec": {
"defaultSnippets": [
{
"label": "new test",
"body": { "test": "$1", "value": "$2" }
},
{
"label": "new all_of test",
"body": {
"all_of": [
{ "test": "$1", "value": "$2" },
{ "test": "$3", "value": "$4" }
]
}
},
{
"label": "new any_of test",
"body": {
"any_of": [
{ "test": "$1", "value": "$2" },
{ "test": "$3", "value": "$4" }
]
}
},
{
"label": "new none_of test",
"body": {
"none_of": [
{ "test": "$1", "value": "$2" },
{ "test": "$3", "value": "$4" }
]
}
}
],
"examples": [{ "all_of": [{}] }, { "any_of": [{}] }, { "none_of": [{}] }], "examples": [{ "all_of": [{}] }, { "any_of": [{}] }, { "none_of": [{}] }],
"oneOf": [ "oneOf": [
{ {