From ff6384e7ded4e2edfccda62ac77297091ceee41b Mon Sep 17 00:00:00 2001 From: DaanV2 Date: Sun, 31 Oct 2021 14:47:59 +0100 Subject: [PATCH] Added snippets and examples for filters --- source/behavior/entities/filters/filters.json | 10 ++++++++++ 1 file changed, 10 insertions(+) diff --git a/source/behavior/entities/filters/filters.json b/source/behavior/entities/filters/filters.json index 41b45b64..cb710213 100644 --- a/source/behavior/entities/filters/filters.json +++ b/source/behavior/entities/filters/filters.json @@ -2,6 +2,16 @@ "$id": "blockception.minecraft.behavior.entities.minecraft.filters", "title": "Filters", "$ref": "#/definitions/groups_spec", + "examples": [ + { "test": "is_family", "value": "example" }, + { "test": "has_tag", "value": "example" } + ], + "defaultSnippets": [ + { + "label": "test", + "body": "{ \"test\": \"$1\", \"value\": \"$2\" }" + } + ], "definitions": { "filters_spec": { "examples": [{ "all_of": [{}] }, { "any_of": [{}] }, { "none_of": [{}] }],